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
607 stars 155 forks source link

Add a fullscreen prop to control the fullscreen state from outside the component #324

Closed iam-rohid closed 7 months ago

iam-rohid commented 8 months ago

I can't find any way to make a video go fullscreen without pressing the fullscreen button on the iframe. I need to fullscreen a video when the user changes the device orientation to landscape. Please add a fullscreen boolean prop to the VideoPlayer or add a method the VideoIframeRef so that we can call that to make the video go fullscreen or exit fullscreen. Thank you

LonelyCpp commented 7 months ago

the youtube iframe API does not support programatic fullscreen, so this lib won't be able to add it as a feature