#[unsafe(no_mangle)]pub unsafe extern "C" fn moq_publish_binary_snapshot(
broadcast: u32,
name: *const c_char,
name_len: usize,
config: *const moq_binary_config,
) -> i32Expand description
Create a binary snapshot track (lossy latest-value) on a broadcast: each payload supersedes the last, and a late joiner only sees the newest, e.g. the latest thumbnail of a camera.
The track is advertised in the broadcast’s catalog under binary.tracks.<name> with
mode: snapshot (plus mime and compression when set), and the entry is retired when the
track finishes or fails.
Returns a non-zero handle to the binary producer on success, or a negative code on failure,
including a mux error when the catalog already carries an entry named name.
§Safety
- The caller must ensure
nameis a valid pointer toname_lenbytes andconfiga valid pointer.