void urtc_peerconn_destroy(urtc_peerconn_t *pc)
Tears down peer connection, closing and freeing all resources.
int urtc_create_offer(urtc_peerconn_t *pc, char **offer)
Creates a local description for an offering peer connection.
void() urtc_force_idr()
(callback) Called to request that video encoder immediately generate an IDR
Definition: urtc.h:90
urtc_peerconn_t * urtc_peerconn_create(const char *stun[])
Create a new peer connection.
int urtc_set_local_description(urtc_peerconn_t *pc, const char *desc)
Sets local description for peer connection.
int() urtc_on_ice_candidate(const char *cand, void *arg)
(callback) Called for each new local ICE candidate discovered
Definition: urtc.h:76
int urtc_set_remote_description(urtc_peerconn_t *pc, const char *desc)
Sets remote description.
int urtc_add_ice_candidate(urtc_peerconn_t *pc, const char *cand)
Adds received remote ICE candidate to peer connection.
struct peerconn urtc_peerconn_t
Opque peer connection structure.
Definition: urtc.h:60
int urtc_create_answer(urtc_peerconn_t *pc, char **answer)
Creates local description for an answering peer connection.
int urtc_set_on_ice_candidate(urtc_peerconn_t *pc, urtc_on_ice_candidate *cb)
Sets onIceCandidate callback function.