Media Element Full Screen for Android/Windows #1123
Closed
ne0rrmatrix
started this conversation in
New Feature Discussions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created device specific code for adding Full screen controls to media element. I have not yet added it to my fork of media element. I am looking for suggestions as to how to move forward with adding it to toolkit. It uses platform specific code to set full screen and restore screen.
This is a example with custom controls using bindable properties for inserting full screen control. This is just an example of layout for specific UI element for full screen toggle control. It as shown is in upper right as an image button. This is subject to discussion and change as needed.
I have example code in a forked copy of community toolkit. Here is example code for windows and android.
Windows code in AppBuilderExtensions.shared.cs
MediaManager.windows.cs:
MediaManager.android.cs
This is for making full screen or restore screen code. What I need is feedback on the above code and what I should do next. I have an implementation working with the command:
This is an example. It works regardless of navbar and tab bar status. Either can be on or off. You can have a title set etc. It will disable it for full screen and re-enable it to previous settings upon exit. In the windows code I have appended a mapping in in the build section and I am unsure if that is ok? Can someone get back to me about that? I have ran a demo and incorporated it into a fork of a program that uses media element and it works for me in Windows and Android. I don't have a mac but I can adjust it for IOS if needed. I think with IOS you can only set it at start and thats it. I have checked the IOS apple apps and they exhibit that behavior themselves.
Should I do different Discussion and separate the controls and implementation of full screen as separate items?
https://github.com/ne0rrmatrix/Maui/tree/FullScreen
Beta Was this translation helpful? Give feedback.
All reactions