Ben Hagen пре 6 година
родитељ
комит
a16cabdcaf
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      lib/src/chewie_controller.dart

+ 2 - 1
lib/src/chewie_controller.dart

@@ -79,7 +79,8 @@ class ChewieController extends ChangeNotifier {
   Future _initialize() async {
     await videoPlayerController.setLooping(looping);
 
-    if (autoInitialize || autoPlay) {
+    if ((autoInitialize || autoPlay) &&
+        !videoPlayerController.value.initialized) {
       await videoPlayerController.initialize();
     }