You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MPE][Wasm] Early media error causes autoplay to fail - Event State Version - #12637
play() failed because the user didn't interact with the document first.
We may not be able to fix this issue, as it's a browser security behavior, but need to reset the playback mode to paused.
What is the new behavior?
When the broser validate that the user do not interact with the document, the Playback is set to paused.
This pull request adds support for handling the SourceSuspend event in the HtmlMediaPlayer class and its related files. This event occurs when the HTML media element is suspended due to autoplay validation. The changes also fix a bug that caused the media to resume playback when the user stopped scrubbing the progress bar if the media was already paused or suspended.
PR Checklist
Please check if your PR fulfills the following requirements:
Docs have been added/updated which fit documentation template (for bug fixes / features)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): closes #12533
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Given this link: https://playgroundcanary.z19.web.core.windows.net/#7486d066, the video may not play immediately with the following error:
play() failed because the user didn't interact with the document first.
We may not be able to fix this issue, as it's a browser security behavior, but need to reset the playback mode to paused.
What is the new behavior?
When the broser validate that the user do not interact with the document, the Playback is set to paused.
Copilot Summary
🤖 Generated by Copilot at efe20c3
This pull request adds support for handling the
SourceSuspendevent in theHtmlMediaPlayerclass and its related files. This event occurs when the HTML media element is suspended due to autoplay validation. The changes also fix a bug that caused the media to resume playback when the user stopped scrubbing the progress bar if the media was already paused or suspended.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):