youtube_player_flutter icon indicating copy to clipboard operation
youtube_player_flutter copied to clipboard

Need a parameter to handle the disable/able full screen view

Open hiashutoshsingh opened this issue 3 years ago • 4 comments

Please add functionality where a user can hide or show the button for a full-screen view.

Currently, it has a full-screen view button and what it does that it rotates the entire widget of the app rather that just the youtube video widget.

hiashutoshsingh avatar Jan 10 '21 16:01 hiashutoshsingh

This can be done invoking javascript function of youtube player API...I can't find in the docs

_controller.invokeJavascript('mozCancelFullScreen()');

PS: the above code is not working

hiashutoshsingh avatar Jan 28 '21 17:01 hiashutoshsingh

You can hide fullscreen button by settings in YoutubePlayerController params showFullscreenButton: false on the other hand you can use controller like below to close fullscreen: _controller.invokeJavascript('document.exitFullscreen()');

PcolBP avatar Aug 11 '21 11:08 PcolBP

@PcolBP can you please suggest how can we enter fullscreen in the same way?

jaskiratAtNexG avatar Jun 01 '22 06:06 jaskiratAtNexG

You can not. Since some version of iframe player of youtube, youtube doesnt allow for opening full screen via script. You have to allow user to do it on his own by tapping on fullscreen button.

PcolBP avatar Jun 03 '22 15:06 PcolBP