dash_mpd

Function is_audio_adaptation

Source
pub fn is_audio_adaptation(a: &&AdaptationSet) -> bool
Expand description

Returns true if this AdaptationSet contains audio content.

It contains audio if the codec attribute corresponds to a known audio codec, or the contentType attributeisaudio, or the mimeTypeattribute isaudio/*, or if one of its child Representationnodes has an audiocontentTypeormimeType` attribute.