chewie
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
@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.
...