|
LiveKit ESP32 SDK v0.3.3
|
Create and destroy room objects. More...
Data Structures | |
| struct | livekit_room_options_t |
| Options for creating a room. More... | |
Typedefs | |
| typedef void * | livekit_room_handle_t |
| Handle to a room object. | |
Functions | |
| livekit_err_t | livekit_room_create (livekit_room_handle_t *handle, const livekit_room_options_t *options) |
| Creates a room. | |
| livekit_err_t | livekit_room_destroy (livekit_room_handle_t handle) |
| Destroys a room. | |
Create and destroy room objects.
| struct livekit_room_options_t |
Options for creating a room.
This is the main way a room is configured. It is passed to livekit_room_create.
| Data Fields | ||
|---|---|---|
| void * | ctx | User context passed to all handlers. |
| void(*)(const livekit_data_received_t *data, void *ctx) | on_data_received |
Handler for data packets received from remote participants.
|
| void(*)(const livekit_participant_info_t *info, void *ctx) | on_participant_info |
Handler for when participant information is received.
|
| void(*)(const livekit_room_info_t *info, void *ctx) | on_room_info |
Handler for when room information is received.
|
| void(*)(const livekit_rpc_result_t *result, void *ctx) | on_rpc_result |
Handler for when an RPC method invoked with livekit_room_rpc_invoke returns a result.
|
| void(*)(livekit_connection_state_t state, void *ctx) | on_state_changed |
Handler for when the room's connection state changes.
|
| livekit_pub_options_t | publish |
Options for publishing media.
|
| livekit_sub_options_t | subscribe |
Options for subscribing to media.
|
| typedef void* livekit_room_handle_t |
Handle to a room object.
| livekit_err_t livekit_room_create | ( | livekit_room_handle_t * | handle, |
| const livekit_room_options_t * | options ) |
Creates a room.
| handle[out] | Room handle. |
| options[in] | Options for the new room. |
| livekit_err_t livekit_room_destroy | ( | livekit_room_handle_t | handle | ) |
Destroys a room.
| handle[in] | Room handle. |