HlsMasterPlaylist constructor

HlsMasterPlaylist({
  1. String? baseUri,
  2. List<String> tags = const [],
  3. List<Variant> variants = const [],
  4. List<Rendition> videos = const [],
  5. List<Rendition> audios = const [],
  6. List<Rendition> subtitles = const [],
  7. List<Rendition> closedCaptions = const [],
  8. Format? muxedAudioFormat,
  9. List<Format>? muxedCaptionFormats = const [],
  10. bool hasIndependentSegments = false,
  11. Map<String?, String> variableDefinitions = const {},
  12. List<DrmInitData> sessionKeyDrmInitData = const [],
})

Implementation

HlsMasterPlaylist({
  String? baseUri,
  List<String> tags = const [], // ignore: always_specify_types
  this.variants = const [], // ignore: always_specify_types
  this.videos = const [], // ignore: always_specify_types
  this.audios = const [], // ignore: always_specify_types
  this.subtitles = const [], // ignore: always_specify_types
  this.closedCaptions = const [], // ignore: always_specify_types
  this.muxedAudioFormat,
  this.muxedCaptionFormats = const [], // ignore: always_specify_types
  bool hasIndependentSegments = false,
  this.variableDefinitions = const {}, // ignore: always_specify_types
  this.sessionKeyDrmInitData = const [], // ignore: always_specify_types
})  : mediaPlaylistUrls = _getMediaPlaylistUrls(
          variants, [videos, audios, subtitles, closedCaptions]),
      // ignore: always_specify_types
      super(
          baseUri: baseUri,
          tags: tags,
          hasIndependentSegments: hasIndependentSegments);