ZerorateHlsPlayerOptions constructor
const
ZerorateHlsPlayerOptions({
- required String appId,
- required String region,
- String grantType = 'mobile',
- String subscriberId = '',
- String authUrl = '',
- MediaType type = MediaType.video,
- required String src,
- bool autoplay = true,
- StreamType mediaType = StreamType.onDemand,
- String? poster,
- bool muted = true,
- double? aspectRatio,
- Widget? placeholder,
- bool? placeholderOnTop,
- AudioControlsConfiguration? audioControlsConfiguration,
- VideoControlsConfig? videoControlsConfig,
- Map<
ZerorateHlsPlayerEventType, ZerorateHlsPlayerEventListener> ? eventListeners, - dynamic onError()?,
- Widget errorBuilder()?,
- Widget controlsBuilder(
- dynamic controller
- Color? iconsColor,
Implementation
const ZerorateHlsPlayerOptions({
required this.appId,
required this.region,
this.grantType = 'mobile',
this.subscriberId = '',
this.authUrl = '',
this.type = MediaType.video,
required this.src,
this.autoplay = true,
this.mediaType = StreamType.onDemand,
this.poster,
this.muted = true,
this.aspectRatio,
this.placeholder,
this.placeholderOnTop,
this.audioControlsConfiguration,
this.videoControlsConfig,
this.eventListeners,
this.onError,
this.errorBuilder,
this.controlsBuilder,
this.iconsColor,
});