Skip to main content

lrtmp2_client_create

Function lrtmp2_client_create 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lrtmp2_client_create( config: *const ServerConfig, ) -> *mut Client
Expand description

Create a client (FFI-compatible). config may be NULL to use defaults (verify rtmps:// peers against the system trust store). When non-NULL, config.tls_ca_file (a CA bundle to trust instead of the system store) and config.tls_insecure (skip verification entirely, for testing only) control rtmps:// verification for this client. Returns NULL if tls_ca_file is non-NULL but not valid UTF-8, rather than silently falling back to default verification.