SenzuPlayer constructor
const
SenzuPlayer({ - Key? key,
- required Map<String, VideoSource> source,
- Duration seekTo = Duration.zero,
- bool looping = false,
- bool autoPlay = true,
- bool? isLive,
- SenzuPlayerStyle? style,
- SenzuMetaData? meta,
- List<SenzuChapter> chapters = const [],
- double defaultAspectRatio = 16 / 9,
- bool enableFullscreen = true,
- bool enableCaption = true,
- bool enableSleep = true,
- bool enableQuality = true,
- bool enableAudio = false,
- bool enableSpeed = true,
- bool enableAspect = true,
- bool enableLock = true,
- bool enableEpisode = true,
- bool enablePip = true,
- bool notification = true,
- bool secureMode = false,
- bool enableLockScreen = true,
- bool adaptiveBitrate = true,
- int minBufferThreshold = 10,
- int maxBufferThreshold = 30,
- void onQualityChanged(
- String
)?,
- SenzuDataPolicy dataPolicy = const SenzuDataPolicy(),
- SenzuWatermark? watermark,
- SenzuTokenConfig? tokenConfig,
- String? imaAdTagUrl,
- List<SenzuAnnotation> annotations = const [],
- 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,
});