For questions related to playing a video with the Flutter open source framework by Google.
Questions tagged [flutter-video-player]
247 questions
13
votes
11 answers
PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, null, null)
**HI I am trying to play a live news video in my flutter app it is .m3u8 format but get above error. Using all of the updated dependencies. I want to play live news in my flutter app. I have the url you can also try it.
URL:…

Sanny khan
- 177
- 1
- 1
- 7
11
votes
1 answer
Flutter video caching for 10 seconds on next 4 videos
Does anyone know how to do Flutter Video Caching in List for 4 to 6 seconds? (For next 5 videos) like Instagram reels.
Is there any way to do it?
I had taken PageView.builder to show a video with a full page.
I have tried one cached_video_player but…

Pratik Butani
- 60,504
- 58
- 273
- 437
9
votes
2 answers
Flutter's video_player throwing a PlatformException on iOS
I'm trying to run my Flutter application on iOS Simulator and I have found that video player throws the following exception on init:
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: PlatformException(VideoError, Failed to load video: The…

pnzrfst1
- 189
- 2
- 9
9
votes
1 answer
How to play videos sequentialy on video_player without delay?
I'm looking to recreate Snapchat's back-to-back video format in Flutter. Since video_player is lacking callbacks for when the video finishes (and is otherwise prone to callback hell), I was wondering if anyone has some pointers for building…

Brendan Manning
- 93
- 1
- 2
- 5
7
votes
0 answers
Flutter Video player not playing in ios
I am using video_player package to play videos from network in flutter. It works fine in android, but fails to load in ios.
Flutter 3.3.3
video_player: ^2.4.7
PS: Server call is https, Issue is happening in real device and Response header has…

Jerry
- 987
- 4
- 16
- 46
7
votes
1 answer
How to mock VideoPlayerController.network() in Flutter
I'm writing a simple test for my video player widget that uses the video_player plugin. I'm not able to mock the network request made by the video controller for fetching the video over network.
My widget code looks like:
late VideoPlayerController…

Rahul Dole
- 2,723
- 2
- 24
- 30
7
votes
1 answer
Flutter AWS : how to authenticate IAM role user of bucket and get AWS S3 object of hls video file and play in video player?
how to authenticate IAM role user by region, bucket id,access key and sceret key and get video file object and play in video player.
Actually we have uploaded video files in AWS S3 and given access grant to one IAM role user.
Now from the flutter…

Jai Techie
- 1,657
- 3
- 14
- 36
6
votes
1 answer
Flutter Performance Issue/Jank with video_player in PageView
I've been struggling with severe janks with the "official" flutter video_player package in combination with the PageView widget.
My Goal
Scroll smoothly and quickly through several pages of a PageView widget, that contain a Video widget each.
Actual…

Flying Wizzy
- 71
- 6
6
votes
3 answers
Flutter: Flutter Video Player cannot play a video file TWICE [Video controller cannot be used after disposed]~
I'm using Official Flutter Video Player Package for my flutter app, but the displayer is totally black and I also got this error while displaying it on the screen:
E/flutter (10774): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception:…

Ryan Wang
- 418
- 7
- 23
6
votes
1 answer
How to jump to frame with flutter video player?
Is it possible to jump to certain timestamp and display the frame without starting the video using flutter video_player?
I was able to change a frame only when I call play immediately after seekTo.
…

kas
- 61
- 1
- 4
5
votes
1 answer
Flutter VideoPlayer from bytes
I am trying to build an application in which the backend generates a short video and returns it as a file in the response. In the Flutter frontend i am parsing the response object to get the bytes representing the video. Using these bytes, I would…

masus04
- 943
- 8
- 19
5
votes
3 answers
how can i play rtsp video stream in flutter?
this is my code thats i m trying by using flutter vlc player but its not working so any can help me to solving the issue or i can show stream with another way?
so you guys can give me any suggestion or give any little example. i m trying to solve…

Muhammad Arbaz Zafar
- 571
- 6
- 15
5
votes
0 answers
How to stop flutter video player from buffering when video reaches a certain percentaje?
I'm using the video_player plugin in flutter combined with Firebase and I just realized that a video could consume my whole Firebase bandwith If I let it play for a few seconds. So I think (correct me if I'm wrong please!) that the best idea is to…

Dario Irribarra
- 103
- 6
5
votes
3 answers
The video_player plugin fails to play videos - Flutter
I updated my flutter to 1.22.0 and now my video_player giving me Exception errors. It was working fine before I updated my flutter to 1.22.0.
Here is my error:
E/flutter ( 8545): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)]
Unhandled…

Jyo
- 421
- 1
- 7
- 20
5
votes
1 answer
Chewie flutter video Player
I am using the chewie player with a custom made control bar, When the player switches to full screen I can not see the controls.. I need to show the controls even if the player goes to full screen. I am not using the controls provide by chewie…

ADL
- 71
- 2
- 3