Skip to content

Commit

Permalink
Refactor VideoPlayerController initialization to adhere to video_play…
Browse files Browse the repository at this point in the history
…er ^2.8.2 guidelines

Updated VideoPlayerController initialization to use VideoPlayerController.networkUrl(Uri.parse('video_url')), complying with video_player ^2.8.2 guidelines.
  • Loading branch information
ishworpanta10 authored Feb 13, 2024
1 parent 33e95c0 commit 7bf1a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ dependencies:
```dart
import 'package:chewie/chewie.dart';
final videoPlayerController = VideoPlayerController.network(
'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4');
final videoPlayerController = VideoPlayerController.networkUrl(Uri.parse(
'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4'));

await videoPlayerController.initialize();

Expand Down

0 comments on commit 7bf1a54

Please sign in to comment.