Skip to main content

moq_origin_create_broadcast

Function moq_origin_create_broadcast 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_origin_create_broadcast( origin: u32, path: *const c_char, path_len: usize, ) -> i32
Expand description

Create a broadcast at path on an origin, for publishing media tracks.

The broadcast is invisible and unroutable, on this origin and its peers alike, until moq_publish_announce. Fill it with the moq_publish_* functions, then announce it. moq_publish_finish unpublishes immediately.

Returns a non-zero broadcast handle on success, or a negative code on failure.

ยงSafety

  • The caller must ensure that path is a valid pointer to path_len bytes of data.