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
Hi @arnaudambro , I'm glad you liked this library. Your issue seems to be related to autoplaying videos on android. Google doesn't allow this by default, so you must add some extra props to the player.
Add
webViewProps={{
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
mediaPlaybackRequiresUserAction: false,
}}
to your <YoutubePlayer /> component and make sure you're on version 1.1.3
Hi there,
I have a great hope in your lib, as I need to play two videos in the same page and
react-native-youtube
doesn't do it for Android.I installed very easily, it's working great on iOS, but on Android I can't play the video.
Here is my code :
When I click on the youtube button play, the log is the following:
Is there something I'm missing ?
The text was updated successfully, but these errors were encountered: