BlingVideoPlayerController constructor

BlingVideoPlayerController({
  1. String? dataSource,
  2. String? package,
  3. bool isLooping = false,
  4. bool autoPlay = true,
  5. bool? mixWithOthers,
  6. Future<ClosedCaptionFile>? closedCaptionFile,
  7. Widget? prepare,
  8. Alignment? alignment,
  9. BoxFit? fit,
})

assets://xxxxx file://xxxxxx http、https ://xxxx

Implementation

BlingVideoPlayerController(
    {String? dataSource,
    this.package,
    bool isLooping = false,
    bool autoPlay = true,
    bool? mixWithOthers,
    Future<ClosedCaptionFile>? closedCaptionFile,
    Widget? prepare,
    Alignment? alignment,
    BoxFit? fit}) {
  if (dataSource != null) {
    setDataSource(
      dataSource,
      package: package,
      isLooping: isLooping,
      autoPlay: autoPlay,
      mixWithOthers: mixWithOthers,
      closedCaptionFile: closedCaptionFile,
      prepare: prepare,
      alignment: alignment,
      fit: fit,
    );
  }
}