[iOS] Fix issue disposing MediaElement #11417
Conversation
@@ -131,8 +131,8 @@ protected override void Dispose(bool disposing) | |||
|
|||
RemoveStatusObserver(); | |||
|
|||
_avPlayerViewController?.Player?.Pause(); | |||
_avPlayerViewController?.Player?.ReplaceCurrentItemWithPlayerItem(null); | |||
_avPlayerViewController?.Dispose(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one will call before on element changed. maybe it will throw exceptions on ElementChange function
NM, I did it |
Fix in this package fails with following error output -
|
Is there a workaround? |
MediaElement moved to XTC |
Description of Change
Fix issue disposing MediaElement on iOS.
Issues Resolved
API Changes
None
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
Not applicable
Testing Procedure
Launch Core Gallery and navigate to the issue 11412. Tap Play and Pause buttons a few times and then tap Stop; navigate back the previous page. Without exceptions the test has passed.
PR Checklist