diff --git a/src/components/VideoPlayerContexts/PlaybackContext.js b/src/components/VideoPlayerContexts/PlaybackContext.js index b77068f3aea2..8cf09f81c614 100644 --- a/src/components/VideoPlayerContexts/PlaybackContext.js +++ b/src/components/VideoPlayerContexts/PlaybackContext.js @@ -67,6 +67,9 @@ function PlaybackContextProvider({children}) { const checkVideoPlaying = useCallback( (statusCallback) => { + if (!(currentVideoPlayerRef && currentVideoPlayerRef.current && currentVideoPlayerRef.current.getStatusAsync)) { + return; + } currentVideoPlayerRef.current.getStatusAsync().then((status) => { statusCallback(status.isPlaying); });