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

Android background played is inactive while buffering. #149

Closed aposto closed 3 years ago

aposto commented 3 years ago

Describe the bug Video is played in the background state of the app . Inactive the app in the background while buffering causes the video to play and sound. Always occurs when the app is inactive while buffering.

To Reproduce

  1. iFrame play video.
  2. Putting the app in the background while buffering.
  3. The video plays and you hear sound.

Expected behavior Stops video if it goes into background state during playback or buffering.

Smartphone :

LonelyCpp commented 3 years ago

Hey this library does not prevent background play.

If you want to stop it, you can use AppState to detect and stop background play