LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
598 stars 153 forks source link

Unable to control fullscreen mode after preventing context menu touches (kebab + long press) #266

Closed seanclaybaugh closed 1 year ago

seanclaybaugh commented 2 years ago

Describe the bug I am hosting some private youtube videos that I need to prevent others from sharing on our RN application. Unfortunately there is no way in the youtube API to control fullscreen without directly accessing the Youtube controls. It seems we must either allow link sharing, forgo fullscreen mode, or replicate fullscreen with a full screen webview + rotate which is not an acceptable interface.

Expected behavior Programmatically control full screen mode outside of the youtube controls or otherwise prevent link sharing of videos

LonelyCpp commented 1 year ago

unfortunately youtube does not give us an API to programatically control player fullscreen state.

you can check here : https://developers.google.com/youtube/iframe_api_reference