ZerorateHlsPlayerOptions constructor

const ZerorateHlsPlayerOptions({
  1. required String appId,
  2. required String region,
  3. String grantType = 'mobile',
  4. String subscriberId = '',
  5. String authUrl = '',
  6. MediaType type = MediaType.video,
  7. required String src,
  8. bool autoplay = true,
  9. StreamType mediaType = StreamType.onDemand,
  10. String? poster,
  11. bool muted = true,
  12. double? aspectRatio,
  13. Widget? placeholder,
  14. bool? placeholderOnTop,
  15. AudioControlsConfiguration? audioControlsConfiguration,
  16. VideoControlsConfig? videoControlsConfig,
  17. Map<ZerorateHlsPlayerEventType, ZerorateHlsPlayerEventListener>? eventListeners,
  18. dynamic onError(
    1. Exception
    )?,
  19. Widget errorBuilder(
    1. Exception
    )?,
  20. Widget controlsBuilder(
    1. dynamic controller
    )?,
  21. 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,
});