How to Play Video on Splash in Flutter | video_player Plugin with Play, End and Duration controls (Listeners)
Playing videos is a common task in app development but there is something differ when we need to play with listeners. The Flutter team provides the video_player plugin. You can use the video_player plugin to play videos stored on the file system, as an asset, or from the internet. On iOS, the video_player plugin makes use of AVPlayer to handle playback. On Android, it uses ExoPlayer. This recipe demonstrates how to use the video_player package to stream a video from the internet with basic play and detect Play, End and Duration controls using the following steps: Add the video_player dependency. (if you are using video from assets you can skip 2 point.) Add permissions to your app. Complete example 1. Add the video_player dependency dependencies: flutter: sdk: flutter video_player: 2. Add permissions to your app Next, update your android and ios configurations to ensure that your app has the corre...