From 0e9ac4d125cef6235bd7fd60576701f02e1a81b4 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 13 Oct 2024 15:14:48 -0600 Subject: [PATCH] Shaka loggin --- src/Video.web.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Video.web.tsx b/src/Video.web.tsx index a4708016..26165da7 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -229,6 +229,7 @@ const Video = forwardRef( useEffect(() => { if (!nativeRef.current || rate === undefined) { + console.log("Not starting shaka yet bc undefined") return; } if (shakaPlayerRef.current) { @@ -246,13 +247,14 @@ const Video = forwardRef( }, }); }); + console.log("Initializing and attaching shaka") shakaPlayerRef.current.attach(nativeRef.current, true); - if (source) { - //@ts-ignore - shakaPlayerRef.current.load(source?.uri).then( - () => console.log(`${source?.uri} finished loading`) - ); - } + + //@ts-ignore + shakaPlayerRef.current.load(source?.uri).then( + () => console.log(`${source?.uri} finished loading`) + ); + console.log("STarted shaka loading"); }, [source]) useMediaSession(source?.metadata, nativeRef, showNotificationControls);