Compare commits

...

1 Commits

Author SHA1 Message Date
Samuel Newman f511f767ba use new async method for player.replace 2025-11-10 13:47:05 +02:00
+3 -3
View File
@@ -341,13 +341,13 @@ function Feed() {
const nextPlayer = [player1, player2, player3][(index + 1) % 3]
if (prevVideo && prevVideo !== prevPlayerCurrentSource?.source) {
prevPlayer.replace(prevVideo)
prevPlayer.replaceAsync(prevVideo)
}
prevPlayer.pause()
if (currVideo) {
if (currVideo !== currPlayerCurrentSource?.source) {
currPlayer.replace(currVideo)
currPlayer.replaceAsync(currVideo)
}
if (
currVideoModeration &&
@@ -361,7 +361,7 @@ function Feed() {
}
if (nextVideo && nextVideo !== nextPlayerCurrentSource?.source) {
nextPlayer.replace(nextVideo)
nextPlayer.replaceAsync(nextVideo)
}
nextPlayer.pause()
}