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

Can't play the player with "play" props when user switch to other apps #258

Closed tunnaduong closed 2 years ago

tunnaduong commented 2 years ago

Like the title, I can't force the player to play with setting state play props. Can you make a function to play the player manually?

tunnaduong commented 2 years ago

Solved by adding set state playing to false on event pause video.