elements icon indicating copy to clipboard operation
elements copied to clipboard

Feature Request: programmatically exit full screen

Open ghost opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Which Mux Elements/Packages does this apply to? Select all that apply

mux-player-react

Description

Auto-scrolling video is a key business feature for businesses delivering professional video. We have built most functionality for auto-scrolling with Mux Player, but we need to programmatically exit the fullscreen mode.

Expected Behavior

There should be an API on the DOM element (or somewhere?) where we can programmatically enter or exit full screen mode.

ghost avatar Apr 04 '23 08:04 ghost

thanks for the feedback!

yes, I think we're missing a few player methods that would make this easier similar to PiP https://github.com/muxinc/elements/issues/493

we'll see if we can add direct methods for PiP and Fullscreen

related code: https://github.com/muxinc/media-chrome/blob/26a05f6ac4accc47241e17f8c58d1d9269e77722/src/js/media-controller.js#L165-L172

luwes avatar Apr 05 '23 20:04 luwes

Thank you

ghost avatar Apr 07 '23 19:04 ghost

I'm also looking to programmatically enter full screen when playback is triggered on mobile devices.

blimpmason avatar Oct 21 '23 00:10 blimpmason

In conjunction with this not only allowing esc to exit full screen (which it does) but clicking the full screen button again should exit. Currently it only take you into full screen.

a-am avatar Jan 02 '24 16:01 a-am