Skip to main content

determine_audio_track_switch_strategy

Function determine_audio_track_switch_strategy 

Source
pub fn determine_audio_track_switch_strategy(
    needs_transcoding: bool,
    use_html5: bool,
) -> AudioTrackSwitchStrategy
Expand description

Decide how to honour an audio-track change.

ยงArguments

  • needs_transcoding - Whether the stream now playing is a server-side transcode, which carries exactly the one audio track it was built around.
  • use_html5 - Whether the frontend <video> element is rendering.

TRACES: UR-021 | IR-019, DR-024, DR-258 | UT-232