use new async method for player.replace

This commit is contained in:
Samuel Newman
2025-11-10 13:47:05 +02:00
parent 4791486aa7
commit f511f767ba
+3 -3
View File
@@ -341,13 +341,13 @@ function Feed() {
const nextPlayer = [player1, player2, player3][(index + 1) % 3] const nextPlayer = [player1, player2, player3][(index + 1) % 3]
if (prevVideo && prevVideo !== prevPlayerCurrentSource?.source) { if (prevVideo && prevVideo !== prevPlayerCurrentSource?.source) {
prevPlayer.replace(prevVideo) prevPlayer.replaceAsync(prevVideo)
} }
prevPlayer.pause() prevPlayer.pause()
if (currVideo) { if (currVideo) {
if (currVideo !== currPlayerCurrentSource?.source) { if (currVideo !== currPlayerCurrentSource?.source) {
currPlayer.replace(currVideo) currPlayer.replaceAsync(currVideo)
} }
if ( if (
currVideoModeration && currVideoModeration &&
@@ -361,7 +361,7 @@ function Feed() {
} }
if (nextVideo && nextVideo !== nextPlayerCurrentSource?.source) { if (nextVideo && nextVideo !== nextPlayerCurrentSource?.source) {
nextPlayer.replace(nextVideo) nextPlayer.replaceAsync(nextVideo)
} }
nextPlayer.pause() nextPlayer.pause()
} }