GoogleChromeLabs / GoogleChromeLabs/bubblewrap

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

Open
#644 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.1k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.