Open Neotrickster opened 4 months ago
That looks great! I have done the initial work to test and it does indeed work. I have it working for Android, Windows, iOS, and Mac Catalyst. So if we move ahead with this API all that is needed is for me to finish editing and then create PR and have it reviewed. Here is link to branch with required changes already done. https://github.com/ne0rrmatrix/MauiOld/tree/FullScreenEvents
Feature name
VideoPlayer_FullScreenStatusChanged
Link to discussion
https://github.com/CommunityToolkit/Maui/discussions/1748#discussioncomment-9548965
Progress tracker
Summary
API that allows developers to hook a media element event and know the full screen status. Is it full screen or normal ?
Motivation
In Xamarin times, we already have something to control when the Full Screen status changed (first and third party) and now we have a very mature Media Element in MAUI is about time to start with this.
Detailed Design
Usage Syntax
Drawbacks
I don't see any reason to not do it :)
Alternatives
Before I migrate to MAUI MediaElement I was using Xamarin with Xamarians/MediaPlayer [https://github.com/Xamarians/MediaPlayer] , looks simple enough from a use perspective:
Unresolved Questions
Perhaps the above API is a good v1 if it works on all platforms? And then we iterate on more functionality in later versions?