Update shaka when nativeRef changes
This commit is contained in:
parent
0e9ac4d125
commit
81e864c0e1
@ -254,8 +254,8 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
shakaPlayerRef.current.load(source?.uri).then(
|
||||
() => console.log(`${source?.uri} finished loading`)
|
||||
);
|
||||
console.log("STarted shaka loading");
|
||||
}, [source])
|
||||
console.log("Started shaka loading");
|
||||
}, [source, nativeRef.current])
|
||||
|
||||
useMediaSession(source?.metadata, nativeRef, showNotificationControls);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user