pub fn audio_level(buf: &[u8], ext_id: u8) -> Option<(u8, bool)>Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
Decode the client-to-mixer audio level RTP header extension (RFC 6464,
urn:ietf:params:rtp-hdrext:ssrc-audio-level) carried under ext_id.
Returns (level_dbov, voice_active) where level_dbov is the audio level in
-dBov (0 = loudest, 127 = silence) and voice_active is the voice-activity
flag (the extension’s most-significant bit). None when the packet carries no
such extension. This is the per-packet input a conference uses to pick the
active (dominant) speaker.