SenzuPlayer constructor

const SenzuPlayer({
  1. Key? key,
  2. required Map<String, VideoSource> source,
  3. Duration seekTo = Duration.zero,
  4. bool looping = false,
  5. bool autoPlay = true,
  6. bool? isLive,
  7. SenzuPlayerStyle? style,
  8. SenzuMetaData? meta,
  9. List<SenzuChapter> chapters = const [],
  10. double defaultAspectRatio = 16 / 9,
  11. bool enableFullscreen = true,
  12. bool enableCaption = true,
  13. bool enableSleep = true,
  14. bool enableQuality = true,
  15. bool enableAudio = false,
  16. bool enableSpeed = true,
  17. bool enableAspect = true,
  18. bool enableLock = true,
  19. bool enableEpisode = true,
  20. bool enablePip = true,
  21. bool notification = true,
  22. bool secureMode = false,
  23. bool enableLockScreen = true,
  24. bool adaptiveBitrate = true,
  25. int minBufferThreshold = 10,
  26. int maxBufferThreshold = 30,
  27. void onQualityChanged(
    1. String
    )?,
  28. SenzuDataPolicy dataPolicy = const SenzuDataPolicy(),
  29. SenzuWatermark? watermark,
  30. SenzuTokenConfig? tokenConfig,
  31. String? imaAdTagUrl,
  32. List<SenzuAnnotation> annotations = const [],
  33. SenzuPlayerBundle? bundle,
})

Implementation

const SenzuPlayer({
  super.key,
  required this.source,
  this.seekTo = Duration.zero,
  this.looping = false,
  this.autoPlay = true,
  this.isLive,
  this.style,
  this.meta,
  this.chapters = const [],

  this.defaultAspectRatio = 16 / 9,
  this.enableFullscreen = true,
  this.enableCaption = true,
  this.enableSleep = true,
  this.enableQuality = true,
  this.enableAudio = false,
  this.enableSpeed = true,
  this.enableAspect = true,
  this.enableLock = true,
  this.enableEpisode = true,
  this.enablePip = true,
  this.notification = true,
  this.secureMode = false,
  this.enableLockScreen = true,
  this.adaptiveBitrate = true,
  this.minBufferThreshold = 10,
  this.maxBufferThreshold = 30,
  this.onQualityChanged,
  this.dataPolicy = const SenzuDataPolicy(),
  this.watermark,
  this.tokenConfig,
  this.imaAdTagUrl,
  this.annotations = const [],
  this.bundle,
});