How to resolve this problem ?
Multiple
instances on Android
The YouTube API for Android is a singleton. What it means is that unlike the iOS implementation, no two players can be mounted and play a video at the same time. If you have two scenes that happen to live together, or come one after the other (such as when navigating to a new scene), The newWill take the focus of the singleton and play the video, but after being unmounted, the older mounted will not be able to take the role back, and will need to be re-mounted.
It seems you can't. I just used a WebView. Here's an example
<WebView
style={styles.webView}
source={{ uri: `https://www.youtube.com/embed/${videoID}?autoplay=0?controls=0?modestbranding=1` }}
mediaPlaybackRequiresUserAction
scalesPageToFit
domStorageEnabled
bounces={false}
scrollEnabled={false}
/>
@jayporta Hi did you know how can i set the WebView video not plays in inlinesplay not fullscreen on IOS? the IOS screen will auto turn to fullscreen after play
Android is a singleton for this library, This is how YouTube API for Android works
Most helpful comment
It seems you can't. I just used a WebView. Here's an example