MediaElement - Fullscreen not able to call dispose / stop #2102
Replies: 3 comments 2 replies
-
Can you open a bug report and submit a sample to show what the issue is? |
Beta Was this translation helpful? Give feedback.
-
Media Element has support for full screen built in for all platforms. There is a PR out now #2041 that will let you know when it enters/exits full screen state. But as for switching states there is clickable element in each device type that lets you switch to full screen and back. There are no manual controls to do this. The reason for not having manual controls that let developers controls full screen is an issue with iOS. We don't have access to the API and can only support the existing full screen functionality that iOS provides built into AVPlayer. We can track the status of full screen events but not invoke them. On all other devices we can do this. But this would split the behavior the API between different devices. Which is something we don't want to do. We want unified behavior where ever possible. |
Beta Was this translation helpful? Give feedback.
-
Closed as answered, if closed in error please let us know to re-open. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am working on implementing a full-screen video player using the Community Toolkit MediaElement in a .NET MAUI app. I am encountering an issue where, after displaying the video in full screen and using the built-in "X" close button in the MediaElement controls, none of my event handlers are triggered. As a result, the video continues to play in the background even after the player is closed. Additionally, the OnDisappearing method for the page does not seem to be called in this scenario.
Here is a sample of my current implementation. Could someone please guide me on the correct approach to ensure that the video stops playing and resources are properly cleaned up when the close button is used?
Thank you!
Base page where video is being called from
Video Player
None of these handlers are being fired when closing the video.
Beta Was this translation helpful? Give feedback.
All reactions