You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently unable to enable Picture in Picture (PiP) mode for YouTube videos in my ReactPlayer component. I've set up the state for the ReactPlayer as follows:
const[state,setState]=useState({// ... your state configurationpip: true,// ... rest of your state configuration});
And here's my ReactPlayer configuration:
<ReactPlayer{...state}onEnablePIP={()=>console.log("onEnablePIP")}onDisablePIP={()=>console.log("onDisablePIP")}// ... rest of your ReactPlayer configuration/>
Description:
I'm currently unable to enable Picture in Picture (PiP) mode for YouTube videos in my ReactPlayer component. I've set up the state for the ReactPlayer as follows:
And here's my ReactPlayer configuration:
This is the button to activate the PIP
I've tried using the YouTube URL 'https://www.youtube.com/watch?v=BBC2n_0y6cg', but the 'canEnablePIP' function always returns false, regardless of the URL.
Steps to Reproduce:
ReactPlayer.canEnablePIP()
function always returnsfalse
.Environment:
Additional Information:
I've searched for similar issues on GitHub, but I couldn't find a solution that works for me. Any help or suggestions would be greatly appreciated.
The text was updated successfully, but these errors were encountered: