pub fn msg_surface_encoder(
surface_id: u16,
encoder_name: &str,
codec_string: &str,
) -> Vec<u8> ⓘExpand description
Build S2C_SURFACE_ENCODER: [0x2A][surface_id:2][name\0codec_string].
The codec_string is the WebCodecs codec string (e.g. “av01.2.05M.08”)
appended after a NUL separator. Old clients that don’t split on NUL
will just display the full string as the encoder name, which is fine.