Skip to main content

render_master

Function render_master 

Source
pub fn render_master(
    media_uri: &str,
    codecs: Option<&str>,
    bandwidth: u32,
) -> String
Available on crate feature hls only.
Expand description

Render a multivariant (master) playlist referencing a single media playlist.

This is the only place an HLS stream advertises its CODECS attribute (e.g. hvc1.1.6.L120.B0). It is required for HEVC/H.265 (and AV1/VVC): Safari and other players will not even attempt to decode H.265 from a bare media playlist that lacks a CODECS="hvc1.*" entry. BANDWIDTH is a mandatory #EXT-X-STREAM-INF attribute; pass a nominal estimate.