Skip to main content

moq_publish_binary_stream

Function moq_publish_binary_stream 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_publish_binary_stream( broadcast: u32, name: *const c_char, name_len: usize, config: *const moq_binary_config, ) -> i32
Expand description

Create a binary stream track (lossless append-log) on a broadcast: every payload is preserved and delivered in order.

The track is advertised in the broadcast’s catalog under binary.tracks.<name> with mode: stream (plus mime and compression when set), for as long as the track lives.

Returns a non-zero handle to the binary stream 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 name is a valid pointer to name_len bytes and config a valid pointer.