parseAudio static method
Implementation
static PipFlutterPlayerAsmsAudioTrack parseAudio(XmlElement node, int index) {
final String segmentAlignmentStr =
node.getAttribute('segmentAlignment') ?? '';
String? label = node.getAttribute('label');
final String? language = node.getAttribute('lang');
final String? mimeType = node.getAttribute('mimeType');
label ??= language;
return PipFlutterPlayerAsmsAudioTrack(
id: index,
segmentAlignment: segmentAlignmentStr.toLowerCase() == 'true',
label: label,
language: language,
mimeType: mimeType);
}