276 questions
1
vote
3
answers
112
views
video player is not working for videos from assets
I am trying to play a 30 sec video , but it is not working as
expected.
_controller = VideoPlayerController.asset(
'assets/videos/disclaimer.mp4',);
All the errors we have been troubleshooting are for ...
2
votes
0
answers
201
views
youtube_player_flutter stuck on thumbnail after Flutter pub outdated – video doesn't play
I'm using the youtube_player_flutter package in my Flutter app to embed YouTube videos. The widget was working perfectly until recently. After running flutter pub upgrade, the video player now gets ...
1
vote
0
answers
82
views
Flutter Video Player Fails To Initialze in Release Mode on Windows Only
So I suspect this will be a hard one. But here we go.
I have my video player. I use the Chewie plugin. Coupled with the Video Player plugin.
Now, my flutter code is used amongst 4 platforms. Android, ...
0
votes
0
answers
41
views
How to restart video playback
I have a VideoPlayerItem widget that plays a video and triggers an onVideoEnd callback when the video ends. I also have a refresh button that I want to use to restart the video playback. How do I do ...
0
votes
1
answer
100
views
Flutter Videoplayer not working/initialising
I want to play an video with delay but the videoplayer is not working/initialising. the delay is working but i nether get the init print or the error print of the video player. The current video is ...
1
vote
0
answers
34
views
Flutter: flick_video_player AnimationController.forward() called with no default duration
When i try to forward/backward the video by double tapping on the right/left OR by dragging the progress bar, I get this Error on the console and UI (until the video is loaded).
here's flick_player....
0
votes
0
answers
321
views
Unhandled Exception: PlatformException(VideoError, Failed to load video: Operation Stopped, null, null)
Im using video_player: ^2.9.0. On Android it's working fine, but i get an error on iOS device.
Video Player Error: Failed to load video: Operation Stopped
[ERROR:flutter/runtime/dart_vm_initializer....
-1
votes
1
answer
196
views
Can we run Flutter Better Player preCache method in isolate?
I'm using better_player package for list of videos in my application. The package is providing the preCache method which cache the video. So just a quick question can i run this method in separate ...
0
votes
0
answers
50
views
flutter video player with chiew controller playing dynamic urls
import 'package:cached_network_image/cached_network_image.dart';
import 'package:chewie/chewie.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
...
0
votes
0
answers
34
views
VideoPlayer Android12 not working but iOS does work
I am uploading videos to firebase storage with a method that handles both images and videos. The list of assets are given from PhotoManager; List<AssetEntity> and are converted into bytes to be ...
-1
votes
1
answer
116
views
Flutter VideoPlayer doesn't support download url from Firebase Cloud Storage?
final MyFile file; //url is the downloadurl from Firebase Cloud Storage
_videoPlayerController = VideoPlayerController.networkUrl(Uri.parse(file.url));
_initVideoPlayerController = ...
0
votes
0
answers
179
views
video_player 2.8.7 flutter error building app
when i adding video_player 2.8.7 to my flutter project, with flutter 3.22 , when just pub get and run project from scratch, this error happened:
Could not find gradle-7.2.1.jar (com.android.tools....
1
vote
0
answers
46
views
Loading screen when the chromecastButton is created
I am using better_player and flutter_cast_video packages.
When I play a video, the chromecast button is created, if I click on the screen so that it and the other controls disappear and I press again ...
0
votes
1
answer
404
views
Flutter - Fit a video within a SizedBox
I am using Chewie to display videos in my Flutter app. I have a full screen videos that looks like the image below:
I want to display the videos in the following format with a 1:1 aspect ratio.
Is it ...
0
votes
1
answer
79
views
when i add video youtube i got error when it is empty
i got red screen when the fvideo is empty
late YoutubePlayerController? _controller;
@override
void initState() {
super.initState();
final videoID = YoutubePlayer.convertUrlToId(...
0
votes
1
answer
956
views
How to play mkv file using flutter video_player?
I am trying to play an .mkv file using. flutters video_player and a api link. When i try to play a mp4 video it works, but when i play a mkv video it gives me the error:
[ERROR:flutter/runtime/...
0
votes
3
answers
983
views
Serving video files using Cloud Storage and Cloud CDN
Update: I've come up with something of a fix.
I added the following to the http headers I was sending
"If-None-Match": "1"
This forces a cache miss when AVPlayer sends it's initial ...
0
votes
1
answer
244
views
Asset file not found when initializing a video player
I am trying to load this video assets/videos/heart_beat.mp4 but when passing its path to the initialization of VideoPlayerController, it throws this error:
Playback error
E/ExoPlayerImplInternal( 9149)...
1
vote
0
answers
134
views
initialize Flutter video_player from API call?
I need to initialize the video player but the url is coming from an API call.
What i tried so far:
late VideoPlayerController _controller;
Future<Tweet> postsFuture = getPosts();
static ...
0
votes
1
answer
527
views
Landscape mode for video player
I am using chewie video player in flutter. My app does not allow landscape mode. I only want to allow chewie player fullscreen to be in landscape. The chewie player is used in a screen similar to ...
1
vote
0
answers
806
views
Flutter video player showing blank screen
I wanted to show a video on screen, so I decided to use video player plugin. when I use network videos it works just fine. but when I want to use my assets, the result is just a blank page.
I read the ...
0
votes
2
answers
361
views
How to add eventsListenter to Flutter BetterPlayerPlaylist
Could someone help with showing how to add events listener for BetterPlayerPlaylist.
I wish to know when a video at a specified playlist index finishes so I can pause or stop player, display a ...
5
votes
2
answers
1k
views
Video not fitting inside container at all in Flutter
I am exhausted at this point. I have tried every possible solution available online and on stackOverflow to resolve this issue.
So basically I have a video that am tryingto fit inside a container but ...
0
votes
0
answers
506
views
flutter videoplayer widget , video zoom to fill width of player while not in fullscreen
i have a flutter widget that shows a video , i want it to act like twitter app video player . what i mean is for example the video has aspect ratio of 9:16 (so its a vertical video) i want the widget ...
1
vote
0
answers
71
views
How to pass gestures through a widget in stack?
I am making a video player with parallax effect on scroll. The design is video on the top and title and description and other details in the bottom. As we scroll up to reveal more of the information ...