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
fix(mpe): AutoPlay=false stuck in Opening state - #12581
This pull request fixes the playback state of media player elements that have a source but not autoplay on various platforms. It updates the MediaPlayerExtension class and the MediaPlayer classes for Android, iOS, and macOS to set the playback state to paused when the media player is prepared or ready to play. It also adds a new test case in Given_MediaPlayerElement.cs to verify this behavior.
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
platform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/macos 🍏Categorizes an issue or PR as relevant to the macOS platform
4 participants
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 #12535
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Setting MPE.AutoPlay=false no longer cause the media player to be stuck in the Opening state for wasm, ios/macos and android.
Copilot Summary
🤖 Generated by Copilot at eb750a5
This pull request fixes the playback state of media player elements that have a source but not autoplay on various platforms. It updates the
MediaPlayerExtensionclass and theMediaPlayerclasses for Android, iOS, and macOS to set the playback state to paused when the media player is prepared or ready to play. It also adds a new test case inGiven_MediaPlayerElement.csto verify this behavior.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information