HlsMasterPlaylist constructor
HlsMasterPlaylist({
- String? baseUri,
- List<
String> tags = const [], - List<
Variant> variants = const [], - List<
Rendition> videos = const [], - List<
Rendition> audios = const [], - List<
Rendition> subtitles = const [], - List<
Rendition> closedCaptions = const [], - Format? muxedAudioFormat,
- List<
Format> ? muxedCaptionFormats = const [], - bool hasIndependentSegments = false,
- Map<
String?, String> variableDefinitions = const {}, - 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);