bubblewrap
bubblewrap copied to clipboard
Youtube video does not stop when onPause occurs on Android only when Chrome is in PWA mode.
Describe the bug Youtube video does not stop when onPause occurs on Android only when Chrome is in PWA mode. For this reason, the TWA app for websites with YouTube videos has been rejected for Play Store listing.
In addition to https://stackoverflow.com/questions/60627847/disable-embedded-media-in-android-chrome-custom-tabs
To Reproduce Steps to reproduce the behavior:
- Run TWA(detault browser - chrome)
- Play iframe embeded Youtube video in TWA
- Press the smartphone power key or press the home key to move to the wallpaper.
- The video continues to play in the background.
Expected behavior Youtube pause The video should be paused in the background.
Reproduce Video https://user-images.githubusercontent.com/10890178/150747900-6d66a9af-ccf3-4e8f-9e9f-73ca659bcbb1.mp4
Smartphone (please complete the following information):
- Device: Galaxy10 5G
- OS: Android11
- Browser Chrome
- Version 97.0.4692.98
Additional context https://github.com/GoogleChrome/android-browser-helper/issues/356