pod_player icon indicating copy to clipboard operation
pod_player copied to clipboard

Fullscreen vertical

Open mbenci opened this issue 2 years ago • 1 comments

Currently when switching to fullscreen the plugin always switches the device to landscape view. Is it possible instead to keep the current orientation of the device when switching to fullscreen?

mbenci avatar Oct 19 '23 09:10 mbenci

try to adding following onToggleFullScreen option, in my case my podplayer version in pubspec is: pod_player: ^0.2.1

return PodVideoPlayer( controller: _playerController!, onToggleFullScreen:screenFunction,);

//..

Future screenFunction(bool isFullScreen)async { await SystemChrome.setPreferredOrientations( [ DeviceOrientation.landscapeRight, DeviceOrientation.landscapeLeft, DeviceOrientation.portraitDown, DeviceOrientation.portraitUp, ], ); }

chathuranga1992 avatar Oct 29 '23 23:10 chathuranga1992