Skip to main content

Module capabilities

Module capabilities 

Source
Expand description

Building ClientCapabilities the same way on every platform: from the decoders a device found (ClientCapabilities::from_decoders), or by asking its player codec string by codec string (ClientCapabilities::probe: Apple’s VideoToolbox, Android’s MediaCodecList, GStreamer), with the defaults every client set by hand: PCM always, range reads then progressive when nothing else is said, no height or bitrate limit, the screen’s HDR as the limit.

Structs§

Decoders
What a device’s player decodes, as it found it.

Traits§

CodecProbe
A device’s player, asked about an RFC 6381 codec string (ClientCapabilities::probe): VideoToolbox and AVURLAsset, MediaCodecList, GStreamer. Any Fn(&str) -> bool is one.

Functions§

candidate_codec_strings
The codec strings a probe asks about (the iOS app’s list): H.264 High at levels 4.1 to 5.2; HEVC Main and Main 10, both tiers, levels 4.1 to 6.2; Dolby Vision profiles 5, 7 and 8, levels 1 to 13; AV1 Main, both tiers, 8- and 10-bit, levels 4.0 to 6.1.