chewie icon indicating copy to clipboard operation
chewie copied to clipboard

Refactor VideoPlayerController initialization to adhere to video_player ^2.8.2 guidelines

Open ishworpanta10 opened this issue 1 year ago • 0 comments

Updated VideoPlayerController initialization to use VideoPlayerController.networkUrl(Uri.parse('video_url')), complying with video_player ^2.8.2 guidelines.

Changes :

final videoPlayerController = VideoPlayerController.network(
    'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4'); 
   
   To 
   
   final videoPlayerController = VideoPlayerController.networkUrl(Uri.parse(
    'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4'));
   
   

ishworpanta10 avatar Feb 13 '24 09:02 ishworpanta10