chewie icon indicating copy to clipboard operation
chewie copied to clipboard

I'm using chewie ,Is there any way to play the video after re-entering the app? And why chewie doesn't support udp file

Open Blacktaler opened this issue 3 years ago • 2 comments

Blacktaler avatar Feb 03 '22 10:02 Blacktaler

@Blacktaler You can mixin WidgetsBindingObserver into your StatefulWidget that plays your video. Call WidgetsBinding.instance!.addObserver(this) in initState() and WidgetsBinding.instance!.removeObserver(this) in dispose(). Then override didChangeAppLifecycleState(AppLifecycleState state) and based on the incoming AppLifecycleState, you can pause or play your video via ChewieController.

Please let me know if that makes sense.

diegotori avatar Feb 17 '22 16:02 diegotori

...

ZoubairDaddow avatar Mar 18 '22 20:03 ZoubairDaddow