diff --git a/src/YoutubePlayer.tsx b/src/YoutubePlayer.tsx index 2160411..5780a0c 100644 --- a/src/YoutubePlayer.tsx +++ b/src/YoutubePlayer.tsx @@ -54,8 +54,6 @@ const YoutubePlayer = forwardRef( try { const data = JSON.parse(event.nativeEvent.data) as MessageData; - console.log('handleMessage', data); - if (data.type === 'ready') { const { playerInfo } = data; @@ -160,8 +158,6 @@ const YoutubePlayer = forwardRef( window.__execCommand && window.__execCommand(${JSON.stringify(commandData)}); true; `; - console.log('Sending command:', command, injectedJS); - webViewRef.current?.injectJavaScript(injectedJS); if (!needsResult) { diff --git a/src/YoutubePlayer.web.tsx b/src/YoutubePlayer.web.tsx index 19323c2..03e35ca 100644 --- a/src/YoutubePlayer.web.tsx +++ b/src/YoutubePlayer.web.tsx @@ -194,7 +194,6 @@ const YoutubePlayer = forwardRef( }, onStateChange: (event) => { const state = event.data; - console.log('YouTube player state changed:', state); onStateChange?.(state); if (state === PlayerState.ENDED) {