VideoPlayerController constructor

VideoPlayerController({
  1. PipFlutterPlayerBufferingConfiguration bufferingConfiguration = const PipFlutterPlayerBufferingConfiguration(),
  2. bool autoCreate = true,
})

Constructs a VideoPlayerController and creates video controller on platform side.

Implementation

VideoPlayerController({
  this.bufferingConfiguration =
      const PipFlutterPlayerBufferingConfiguration(),
  bool autoCreate = true,
}) : super(VideoPlayerValue(duration: null)) {
  if (autoCreate) {
    _create();
  }
}