Generate a new file by compressed video, and provide metadata. Get video thumbnail from a video path, supports JPEG/GIF. To reduce app size not using FFmpeg in IOS.
controller = VideoPlayerController.network(
widget.url)
..initialize().then(() {
// Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
setState(() {});
When the video finishes playing, I need to restore the video state to the initial state. When the button is clicked, the video starts playing from the beginning.
controller = VideoPlayerController.network( widget.url) ..initialize().then(() { // Ensure the first frame is shown after the video is initialized, even before the play button has been pressed. setState(() {});
}); _controller.setLooping(false)