For questions related to playing a video with the Flutter open source framework by Google.
Questions tagged [flutter-video-player]
247 questions
0
votes
0 answers
VideoEditorController breaks all VideoPlayers in parent widgets
I have a page where I crop and trim the video.
When I initialize a VideoEditorController and for example edit the video, or just navigate back to previous page. And then I get method channel error and all CachedVideoPlayer widgets show a black…

Amiden
- 39
- 5
0
votes
0 answers
flutter video player close connection after 1 minute
I initialize video player for stream live video(.m3u8 format). everything is ok but when I back from player screen and check active connection on the server, my connection still open and close after 20~60 second. how to to fix it?
void…

Sadegh Bakhshandeh Sajjad
- 139
- 1
- 4
- 14
0
votes
1 answer
How to remove backspace between the frames in video_trimmer package
I would like to remove the black space between each frame video. I using the package called video_trimmer: https://pub.dev/packages/video_trimmer
trimmer video example
This is my Trim Editor so far:
TrimEditor(
trimmer: controller.trimmer!,
…

iAugustozSatoshi
- 26
- 5
0
votes
1 answer
In flutter how to use GetX to get and set first frame in video player?
I am using video_player with GetX. And as you can see in official example, to get and set first frame of video as thumbnail, you have to use empty setState.
@override
void initState() {
super.initState();
_controller =…

BlazingRSj
- 121
- 6
0
votes
0 answers
Display Video Thumnail using Flutter video_player
I have my mobile app successfully displaying my images and videos on my page, but it seems to only show a blank container with play thumbnail for my videos.
GridView.builder(
gridDelegate:
const…

Powermaster Prime
- 402
- 1
- 2
- 16
0
votes
1 answer
Flutter GestureDetector not working with video_player plugin
I'm trying to implement a feature where the video will pause and unpause when the video itself is tapped.
i don't want separate buttons for the functionality.
when i replace the VideoPlayer widget with just text, the print statement fires.
body:…

PaMcD
- 105
- 13
0
votes
1 answer
playing video player in flutter with API
good morning all,
I've a problem with playing video in flutter
I'm using this package video_player: ^2.4.5
but when I open the screen that contain my video it does not work. it gave me a white screen
here's my code
class VideoPlayerScreenState…

Saayeed M Daawoud
- 236
- 4
- 19
0
votes
1 answer
How to catch platform-native errors in Flutter and prevent crashing?
I'm using the Video Player package in Flutter.
My problem:
When the videoPlayerController is initialized with no/invalid data on iOS, the app silently crashes without any error message and doesn't leave any opportunity to react to the error by…

JohnnyRainbow
- 61
- 5
0
votes
1 answer
Flutter : which url format that videp_player package support for play video?
I'm new in programming and I'm studying Flutter, I tried to play video by video_player package, I tried 3 urls play ing video such as…

Công Hiến
- 17
- 5
0
votes
1 answer
Flutter : cannot play video from the network
I use video_player package to show video, but it's not working when I set to play video on the network.
String url =
…

Công Hiến
- 17
- 5
0
votes
1 answer
flutter CertificateException video player issue
i'm using the dart package video_player 2.4.5 to play videos in my app, in ios it works perfectly but in android it isn't due to an https error, because when i replace https link with an http link it works.
my code…

Mehdi Chibani
- 159
- 3
- 11
0
votes
1 answer
video playing in background flutter
im working through a scrollable page view somewhat like tic tok and each time i leave the screen the video continuously play in the background, which i dont want, cuz this code ids from a youtube tutorial i dont know how to work around the problem,…

Olaniyi Philip
- 11
- 3
0
votes
6 answers
My Flutter app showing white screen in release apk
My flutter app runs fine on debug mode but when i create release apk its stuck on white screen.
Main Screen
My Flutter app showing white screen in release apk

Kapil Sharma
- 21
- 2
0
votes
1 answer
video_player aspect ratio for m3u8 videos is different from mp4 videos on iOS
I moved the videos from my app from mp4 format to m3u8 using Cloudflare Stream API. I noticed that on iOS some videos have incorrect aspect ratio and look zoomed in (not a problem on Android).
I found the following thread…

user12051965
- 97
- 9
- 29
0
votes
1 answer
how can display play and pause button in videoplay on flutter?
how can display play and pause button in videoplay on flutter? And when user click the play, how do hide the button?
I used this methods, but it was only show very small icon... how can to do like facebook play & pause button?
InkWell(
…

Stanley
- 311
- 5
- 15