Full Screen feature for the Media Element on Android #995
Closed
vhugogarcia
started this conversation in
New Feature Discussions
Replies: 2 comments 4 replies
-
Is it possible to add support for iOS, MacCatalyst, Windows and Tizen too? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I'm closing this discussion, since our friend James @ne0rrmatrix has a better implementation than mine and currently a PR is actively in review. Thanks all for the help :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
History
Video player in Android uses ExoPlayer StyledPlayerView. This video library provides the elements to play videos and all around it. However, full screen is not implemented out-of-box and for instance it requires a custom implementation.
Proposal
Enable the simple full screen feature for the media element on Android devices. iOS already have the full screen feature natively, this is purely for Android since this feature requires custom implementation.
Enable the Full screen button on the ExploPlayer
ExoPlayer has a listener that identifies when a method has been assigned to the click event, so it automatically adds the Full Screen icon to the player.
playerView.FullscreenButtonClick += PlayerView_FullscreenButtonClick;
New method that reacts to the tap event of the Full screen button in the ExoPlayer:
New Property for future releases
New Method for future releases
Video Demo
Media-Element-Full-Screen-Demo-Android.mp4
I sincerely apologize for jumping ahead and creating a PR before starting this discussion: #994
Thanks in advance to all the community here, I'm open to ideas, recommendations. I'm happy to learn 👍🏻
Beta Was this translation helpful? Give feedback.
All reactions