Skip to main content

renderer_can_decode_audio

Function renderer_can_decode_audio 

Source
pub fn renderer_can_decode_audio(codec: &str) -> bool
Expand description

Whether the renderer that decodes video on this platform can also decode this audio codec.

On a webview platform this is the webview’s narrow list, because the element decodes both halves. On Android it is the device’s own list: ExoPlayer plays the audio, so judging it against the webview’s capabilities transcodes files that would have played.

TRACES: UR-004, UR-080 | DR-234