Participant Events
Manage participant events when users join or leave channels.
Read time 1 minuteLast updated 20 hours ago
The Vivox SDK posts information about individual participants in a channel that is visible to all other participants. This includes the following information:
- When a user joins a channel
- When a user leaves a channel
- When there is an important change in user state, such as whether the user is speaking or typing
vx_evt_participant_addedvx_evt_participant_removedvx_evt_participant_updated
When keeping track of participant state, it is important to use thevoid HandleParticipantAddedEvent(vx_evt_participant_added *evt){ printf("User %s joined %s\n", evt->encoded_uri_with_tag, evt->session_handle);}void HandleParticipantRemovedEvent(vx_evt_participant_removed *evt){ printf("User %s left %s\n", evt->encoded_uri_with_tag, evt->session_handle);}void HandleParticipantUpdatedEvent(vx_evt_participant_updated *evt){ printf("User %s %s speaking to %s\n", evt->encoded_uri_with_tag,evt->is_speaking ? "is" : "is not", evt->session_handle);}
encoded_uri_with_tag