Questions tagged [flutter-video-player]

For questions related to playing a video with the Flutter open source framework by Google.

247 questions
5
votes
1 answer

Preventing ExoPlayer used via video_player in Flutter from spamming the logs

Whenever I play a new file in my video_player I get a long list of logs which makes it a lot harder to see my own logging. A lot of it with Logging value info and hi Is there a way to make the video_player a lot less chatty? I/ExoPlayerImpl(21717):…
Christian
  • 25,249
  • 40
  • 134
  • 225
4
votes
2 answers

Where Video Player keeps network files and can you keep multiple ones

I've been working with video_player package from Flutter. I'm mostly testing videos taken from the url. My code is very similar to the ones from the examples. Everywhere I read about it, I can see that this library does not support caching of the…
Karzel
  • 928
  • 9
  • 24
4
votes
1 answer

Flutter vlc player crashes app after going back

I have added flutter vlc player to my app. when i go back from vlc player page, the app suddenly crashes. i have tried direct example from pub.dev to try it out, but it also results into same. This is my Error D/apitrace(22547): apitrace: warning:…
4
votes
0 answers

Flutter video_player is played with a delay after initialize

I'm using the flutter video_player to display videos in a loop. I show a loading indicator as long as the video player is not initialized yet. The problem is that after initialize().then() is called, the video still needs about 3 - 5 seconds until…
saibot
  • 331
  • 2
  • 13
4
votes
0 answers

In Flutter, ExoPlayer is not working for some video URL which get from API

I have this type of video URL: https://devnuevo.com/media/video/demo_720.mp4 The problem is, that when I try to play this video it using ExoPlayer, the following exception is thrown. Unhandled Exception: PlatformException(VideoError, Video player…
4
votes
3 answers

Video_player Crashes Android Emulator in Flutter

I am trying to use the video_player, but I am getting the below error. I have also added an MRE (minimum reproducible example). I have used an emulated Pixel 4, an emulated Pixel 4 XL, and an emulator Pixel 5 with the Android Studio Beta, but none…
KetZoomer
  • 2,701
  • 3
  • 15
  • 43
4
votes
1 answer

"Unable to establish connection on channel" error while trying to play video using the video_player package

I'm using Flutter to develop a desktop app that is supposed to play a video in it and therefore I have added the video_player flutter package to my pubspec.yaml file by adding the following: dependencies: flutter: sdk: flutter …
RikSantra
  • 81
  • 1
  • 10
4
votes
1 answer

Flutter Web- playing uint8list n videoplayer

I am trying to play a local video file on flutter web but am getting stuck after choosing the video. According to this github post, it is possible to play a local video file by converting the uint8list of the video to a blob and then using…
Provendor
  • 85
  • 1
  • 9
4
votes
2 answers

play video on flutter with transparent background

I did some complex 3d animations on blender and I want to play them on flutter. The problem is that when I export the animation into a video and I put it on my flutter app the transparent background is gone. I'm using video_player to play videos on…
4
votes
1 answer

How to play YouTube videos in google chromecast from Flutter application?

My Flutter application has some YouTube video links. Those YouTube links, i would like to stream through google chromecast. I have seen some video stream casting using the below flutter…
3
votes
1 answer

Betterplayer video screen is black but sound is playing

I download the code of better player from https://github.com/jhomlala/betterplayer and run it with flutter run in my IOS and android emulator. The normal video player works but the better player shows a black screen on IOS iPhone and some video…
fermain
  • 51
  • 6
3
votes
1 answer

Is it possible to create a video player in stateless widget in flutter?

I was trying to create a videoplayer in a stateless widget in flutter. I could not do it.... this is the code I used ...Is it possible to create a video player in a stateless widget? class VideoWidget extends StatelessWidget { VideoWidget({Key?…
3
votes
1 answer

How do i open srt file on flutter?

I am trying to load subtitle to a video using the flutter video player package it works good for short files but it stopped as the file get bigger I trayed subtitle_wrapper package but it has many bugs Future getSubtitle(String…
3
votes
2 answers

MissingPluginException(No implementation found for method on init channel better_player_channel)

I am getting the following error even though I copied the example from better_player documentation. I made sure my target on android is 31, kotlin is 1.5+, and internet permission is enabled. Here is my flutter version: ➜ drm_player git:(main) ✗…
3
votes
2 answers

Flutter better_player: How to play video from local assets folder

Q) Anyone know how to reference a file locally for both iOS and Android with better_player? I cannot find a way to do this with their docs, I know it can be done with the in-house Flutter VideoPlayer plugin BUT I want to use better_player…
Dave
  • 5,283
  • 7
  • 44
  • 66
1
2
3
16 17