Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] YouTube videos plays when screen locked #580

Closed
isaac-galvan opened this issue Mar 18, 2021 · 1 comment
Closed

[BUG] YouTube videos plays when screen locked #580

isaac-galvan opened this issue Mar 18, 2021 · 1 comment
Assignees
Labels
Type: Bug Something isn't working

Comments

@isaac-galvan
Copy link
Contributor

Describe the bug
On Android, a YouTube video embedded in a web page displayed in the app plays in the background if the screen is locked.
Google has asked us to address this as background play of YouTube videos is against their policies.

To Reproduce
Steps to reproduce the behavior:

  1. Open Safer Illinois and tap on Your Care Team
  2. Expand Mental Health and tap Virtual Counseling
  3. Start the YouTube video on that webpage
  4. Turn off your screen or exit the app and the video continues to play in the background.

Expected behavior
The video should stop playing when the screen is locked or app is closed. Alternatively, open the Virtual Counseling page in another browser installed on the phone.

Smartphone (please complete the following information):

  • Device: Google Pixel 3a
  • OS: Android 11
  • Version 2.9.21

Additional context
The video stops on screen lock or app close in Firefox and Chrome on Android.

@isaac-galvan isaac-galvan added the Type: Bug Something isn't working label Mar 18, 2021
mdryankov added a commit that referenced this issue Mar 22, 2021
Unload web page when the app is in background [#580]
@mdryankov
Copy link
Collaborator

This fixed both in 2.9.22 & latest versions

mihail-varbanov pushed a commit that referenced this issue Mar 23, 2021
* support/v2.9:
  v2.9.22+922
  Unload web page when the app is in background [#580]

# Conflicts:
#	pubspec.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants