dash_mpd

Function is_video_adaptation

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

Returns true if this AdaptationSet contains video content.

It contains video if the contentType attributeisvideo, or the mimeTypeattribute isvideo/*(but without a codec specifying a subtitle format), or if one of its childRepresentationnodes has an audiocontentTypeormimeType` attribute.

Note: if it’s an audio adaptation then it’s not a video adaptation (an audio adaptation means audio-only), but a video adaptation may contain audio.