flick-video-player
flick-video-player copied to clipboard
Hide controls after autoplay
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.
Can please share a snippet of how you implementing it?
Please try the example app as well. We can't reproduce it their.
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 ], ), ), ),
Are you able to reproduce it on an iOS device too?
yes, but the problem is auto hide controls working in android devices, it's not working on ios device
Ok. Will check.
@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 ?