pub fn codec_utils_caps_get_mime_codec(
    caps: &CapsRef
) -> Result<GString, BoolError>
Expand description

Converts caps to a RFC 6381 compatible codec string if possible.

Useful for providing the ‘codecs’ field inside the ‘Content-Type’ HTTP header for containerized formats, such as mp4 or matroska.

Registered codecs can be found at http://mp4ra.org/#/codecs

§caps

A gst::Caps to convert to mime codec

§Returns

a RFC 6381 compatible codec string or None