cached_video_player_plus icon indicating copy to clipboard operation
cached_video_player_plus copied to clipboard

there is no video controller !!

Open gitkiller444 opened this issue 1 year ago • 1 comments

why there is no video controller you have added, this library is doing great while I was testing, but the only problem is there is no way to control video, play/pause, mute/unmute... nothing..

But its great to use. just needs some modification. I hope it will be done soon.

gitkiller444 avatar Aug 16 '24 07:08 gitkiller444

This library does have a controller to play/pause the video. To mute the video you have to invoke the setVolume method and set value to zero.

e.g.

final controller = CachedVideoPlayerPlusController.networkUrl(
  Uri.parse(
    'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
  ),
);

// Invoke below methods after initializing the controller
controller.play(); // Starts playing the video
controller.pause(); // Pauses the video
controller.setVolume(0); // Mutes the video

OutdatedGuy avatar Aug 16 '24 16:08 OutdatedGuy