Skip to main content

## served_audio_codec

# Function served_audio_codec

Source

    pub fn served_audio_codec<'a>(
        streams: &[(Option<&'a str>, bool)],
    ) -> Option<&'a str>

Expand description

The codec of the audio track the server will actually serve, given the source’s audio streams as `(codec, is_default)` in source order: the default, or the first when none is marked.

`None` means “nothing to judge” — no audio streams, or the server named no codec for the one it would serve. Both callers of this rule treat that as leave-well-alone, never as a licence to assume compatibility.

TRACES: UR-004, UR-071 | DR-149, DR-171 | UT-148, UT-166