From f511f767ba4ba00babf8a7f449c72a6fcf9299f2 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 10 Nov 2025 13:47:05 +0200 Subject: [PATCH] use new async method for player.replace --- src/screens/VideoFeed/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index 480ecb476a..74f40cdbfb 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -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() }