bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Youtube video does not stop when onPause occurs on Android only when Chrome is in PWA mode.

Open yahao87 opened this issue 3 years ago • 0 comments

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:

  1. Run TWA(detault browser - chrome)
  2. Play iframe embeded Youtube video in TWA
  3. Press the smartphone power key or press the home key to move to the wallpaper.
  4. 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

yahao87 avatar Jan 25 '22 05:01 yahao87