From 81e864c0e1f08ad527db13af824f3da5dc95caef Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 13 Oct 2024 19:17:01 -0600 Subject: [PATCH] Update shaka when nativeRef changes --- src/Video.web.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Video.web.tsx b/src/Video.web.tsx index 26165da7..0d96ae2b 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -254,8 +254,8 @@ const Video = forwardRef( 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);