Store key-value data on disk

Take a picture using the camera

Play and pause a video

Cookbook

Plugins

Play and pause a video

1. Add the video_player dependency

2. Add permissions to your app

Android
iOS

3. Create and initialize a VideoPlayerController

4. Display the video player

5. Play and pause the video

Complete example

Playing videos is a common task in app development,
and Flutter apps are no exception. To play videos,
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.