toTracks method
Implementation
List<UMediaTrack> toTracks() {
final List<UMediaTrack> tracks = <UMediaTrack>[];
for (final UDashPeriod period in periods) {
for (final UDashAdaptationSet set in period.adaptationSets) {
for (final UDashRepresentation rep in set.representations) {
tracks.add(
UMediaTrack(
id: rep.id,
type: set.trackType,
language: set.language,
codec: rep.codecs,
bitrate: rep.bandwidth,
width: rep.width,
height: rep.height,
frameRate: rep.frameRate,
channels: rep.audioChannels,
sampleRate: rep.audioSamplingRate,
),
);
}
}
}
return tracks;
}