4

My app was rejected from Play Store because when playing a Youtube video, it continues to play after you lock the screen.

My app loads an API which will put a Youtube link in a WebView

I've been searching on Google but haven't found anything that could help me.. How can I make sure the Webview pauses on lock?

Greg
  • 1,382
  • 3
  • 22
  • 45
  • 1
    Possible duplicate of [How to prevent React Native Android Webview from running Youtube in the background?](https://stackoverflow.com/questions/36382935/how-to-prevent-react-native-android-webview-from-running-youtube-in-the-backgrou) – Adrien Joly Oct 23 '17 at 16:12
  • did you find the solution, i got the same on – James Nguyen Apr 26 '18 at 01:53
  • 1
    @JamesNguyen Unfortunately I didn't.. What I did as an alternative is to link the video to Youtube. I used a thumbnail with play button, people click the video and they will be redirected to Youtube. – Greg Apr 26 '18 at 11:33
  • not lucky for me. Video is an iframe with a youtube link, so i can not do like you. – James Nguyen Apr 27 '18 at 04:18
  • @JamesNguyen It's also an embedded code for me, but I slice the url part out of the code and use that to link to the video. – Greg May 07 '18 at 11:58

0 Answers0