Issue The following classic code snippet fails to fetch the video from Bunny CDN @override void initState() { super.initState(); controller = VideoPlayerController.networkUrl(Uri.parse(widget.video), httpHeaders: {"AccessKey": CDN_READ_ONLY_TOKEN}); controller.initialize(); } I get the following error: E/ExoPlayerImplInternal(14202): Playback error E/ExoPlayerImplInternal(14202): com.google.android.exoplayer2.ExoPlaybackException: Source error E/ExoPlayerImplInternal(14202):
Continue readingTag: flutter-video-player
How to add functionality of speed increase/decrease in Flick Video Player Flutter
Issue I am using Flick Video Player in Flutter. I want to add speed functionality on the screen of video just like other buttons like volume. How to do this? Solution You can easily use this setPlaybackSpeed(value) from FlickManager like
Continue readingIs there a way to check whether a VideoPlayerController from the Flutter video-player package is already disposed?
Issue At a point in my code I now that I won’t need a VideoPlayerController anymore but I’m not sure whether or not a VideoPlayerController is already disposed. Currently, I call the dispose() method but when the VideoPlayerController is already
Continue reading"Unable to establish connection on channel" error while trying to play video using the video_player package
Issue 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 video_player:
Continue readingHow to disable rewinding and forwarding the video using Flutter Chewie package?
Issue I am basically trying to prevent the user from rewinding or forwarding the video via progress slider but user should still be able to pause and play the video and see how many seconds/minutes remains till the end of
Continue readingFlutter VLC Player with options
Issue import ‘package:flutter/material.dart’; import ‘package:flutter_vlc_player/flutter_vlc_player.dart’; class Home extends StatefulWidget { @override _ExampleVideoState createState() => _ExampleVideoState(); } class _ExampleVideoState extends State<Home> { final VlcPlayerController controller = new VlcPlayerController.network(url); @override Widget build(BuildContext context) { return Scaffold( body: SizedBox( height: 100, width: 40,
Continue readingHow to mock VideoPlayerController.network() in Flutter
Issue 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:
Continue readingVideo Player plugin for Flutter not working correctly when deploy to Firebase hosting
Issue I have built the widget that uses video_player 2.6.0 package from https://pub.dev/packages/video_player. This is the code: import ‘package:flutter/material.dart’; import ‘package:video_player/video_player.dart’; void main() => runApp(const VideoApp()); /// Stateful widget to fetch and then display video content. class VideoApp extends StatefulWidget
Continue readingFlutter video_player – passing video file as parameter without errors
Issue I’m attempting to create a page in my app which renders a video background, using video_player. I want to pass a video file into my video player widget, and I have followed the docs and this article for passing
Continue readingI used flutter_vlc_player package for Rtsp camera preview Running fine in Android but getting error in macos. Is support this package for macos?
Issue it’s my code import ‘package:flutter/material.dart’; import ‘package:flutter_vlc_player/flutter_vlc_player.dart’; class IPCameraScreen extends StatefulWidget { final String url; const IPCameraScreen({Key? key, required this.url}) : super(key: key); @override _IPCameraScreenState createState() => _IPCameraScreenState(); } class _IPCameraScreenState extends State<IPCameraScreen> { late VlcPlayerController _vlcController; @override void
Continue reading