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

test: Fix Fuchsia background-video errors #6579

Conversation

joeyparrish
Copy link
Member

In some cases, Fuchsia Chromecast tests will fail with the error: "The play() request was interrupted because video-only background media was paused to save power."

This resolves the issue by ensuring tests run un-muted on that platform, based on this Chrome code, which indicates the "paused to save power" logic does not activate when sound is playing: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/media/web_media_player_impl.cc;l=3535;drc=d23075f3

This also fixes two places in our tests where the createVideoElement() was bypassed. This should always be used, because it is a central place to apply workarounds such as this.

In some cases, Fuchsia Chromecast tests will fail with the error: "The play() request was interrupted because video-only background media was paused to save power."

This resolves the issue by ensuring tests run un-muted on that platform, based on this Chrome code, which indicates the "paused to save power" logic does not activate when sound is playing: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/media/web_media_player_impl.cc;l=3535;drc=d23075f3
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@joeyparrish joeyparrish merged commit ddabe93 into shaka-project:main May 11, 2024
20 checks passed
@joeyparrish joeyparrish deleted the fix-fuchsia-background-video-errors branch May 11, 2024 06:21
avelad pushed a commit that referenced this pull request May 13, 2024
In some cases, Fuchsia Chromecast tests will fail with the error: "The
play() request was interrupted because video-only background media was
paused to save power."

This resolves the issue by ensuring tests run un-muted on that platform,
based on this Chrome code, which indicates the "paused to save power"
logic does not activate when sound is playing:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/media/web_media_player_impl.cc;l=3535;drc=d23075f3

This also fixes two places in our tests where the `createVideoElement()`
was bypassed. This should always be used, because it is a central place
to apply workarounds such as this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants