use new async method for player.replace
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user