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

Hide related videos and share option #269

Closed sankarmahadevan closed 1 year ago

sankarmahadevan commented 1 year ago

Hi, is there any way to hide related videos while pausing or end of the video? Also wanted to hide the share option. Please let me know if it's doable.

LonelyCpp commented 1 year ago

both are not possible to do using the iframe APIs provided by Youtube

you can go through all the officially supported options here : https://developers.google.com/youtube/iframe_api_reference

this library serves as an interface to this, nothing extra can be added

sankarmahadevan commented 1 year ago

Thanks for your reply. Is there any other possible way to achieve my requirement? Basically, we have bunch of YouTube videos and wanted to play in RN app. All the videos are educational contents so, the user should not get distracted by other controls and related videos. Please provide your suggestions if you know any