sarbagyastha / youtube_player

A flutter plugin to play Youtube Videos without API Key in range of Quality(144p, 240p,360p,480p,720p and 1080p).
MIT License
120 stars 45 forks source link

Portrait Orientation gives Portrait Fullscreen video #50

Open SayaGames opened 5 years ago

SayaGames commented 5 years ago

Hi, I use portrait orientation in my app by the code:

SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]); If user click fullscreen mode on the player, result is portrait video (shrunk)***

I want if user click fullscreen button, result is landscape (correct ratio of the video). User can manually turn the phone to watch. How to? Best regards

(Also, is there any event to enter fullscreen?)

SayaGames commented 4 years ago

I noticed that, removing the "SystemChrome.setPreferredOrientations" declarations (not forcing the specific orientation) cure for the issue. But this time we have to implement on UI for horizontal / vertical layouts both.