flick-video-player icon indicating copy to clipboard operation
flick-video-player copied to clipboard

Hide controls after autoplay

Open ap26091995 opened this issue 3 years ago • 6 comments

Want to hide controls after autoplay, In android its working but in IOS it's continuously shows controls but when we tap on player it get hide.

ap26091995 avatar Oct 13 '21 10:10 ap26091995

Can please share a snippet of how you implementing it?

Please try the example app as well. We can't reproduce it their.

geekruchika avatar Oct 13 '21 11:10 geekruchika

VisibilityDetector( key: ObjectKey(flickManager), onVisibilityChanged: (visibility) { if (visibility.visibleFraction == 0 && this.mounted) { print("89898989898989"); print(visibility.visibleFraction); flickManager.flickControlManager.pause(); } else if (visibility.visibleFraction == 1) { print("89898989898989"); print(visibility.visibleFraction); flickManager.flickControlManager.autoResume(); } }, child: Container( height: MediaQuery.of(context).size.height * 0.3, child: FlickVideoPlayer( flickManager: flickManager, flickVideoWithControls: FlickVideoWithControls( videoFit: BoxFit.contain, controls: FlickPortraitControls( iconSize: MediaQuery.of(context).size.width * 0.08, ), ),wakelockEnabled: true, wakelockEnabledFullscreen: true, flickVideoWithControlsFullscreen: FlickVideoWithControls( videoFit: BoxFit.fill, controls: FlickLandscapeControls(), ), preferredDeviceOrientationFullscreen: [ flickManager.flickVideoManager.videoPlayerValue .size.height > flickManager.flickVideoManager .videoPlayerValue.size.width ? DeviceOrientation.portraitUp : DeviceOrientation.landscapeLeft ], ), ), ),

ap26091995 avatar Oct 13 '21 11:10 ap26091995

Are you able to reproduce it on an iOS device too?

geekruchika avatar Oct 13 '21 12:10 geekruchika

yes, but the problem is auto hide controls working in android devices, it's not working on ios device

ap26091995 avatar Oct 13 '21 12:10 ap26091995

Ok. Will check.

geekruchika avatar Oct 13 '21 12:10 geekruchika

@ap26091995 I could not reproduce this issue , tried with your code snippet as well. are you able to reproduce this issue with flick examples ? If not, can you please create and share a demo repo where we can run and re produce the issue ?

knowsach avatar Oct 13 '21 18:10 knowsach