API | Description |
Obtain a VoiceRoomKit object instance. | |
Create a voice chat room live streaming room. | |
Enter a voice chat room live streaming room using roomId. |
static VoiceRoomKit createInstance(Context context)
Parameter | Type | Note | Default value | Meaning |
context | Context | Mandatory | - | Android context object |
void createRoom(String roomId, VoiceRoomDefine.CreateRoomParams params);
Parameter | Type | Note | Default value | Meaning |
roomId | String | Mandatory | - | Live Streaming Room ID |
params | Mandatory | - | Create Live Room Parameters |
void enterRoom(String roomId);
Parameter | Type | Note | Default value | Meaning |
roomId | String | Mandatory | - | Live Streaming Room ID |
Parameter | Type | Note | Default value | Meaning |
roomName | String | | "" | Voice chat room name |
maxAnchorCount | int | | 10 | Maximum number of users on stage |
seatMode | String | Mandatory | | Mic On Mode is divided into the following two types: FREE_TO_TAKE(1): Free to Join the Podium mode, where the audience can join the mic freely without applying. APPLY_TO_TAKE(2): Apply to Join the Mic mode, where the audience needs the host's or administrator's approval to join the mic. |
Was this page helpful?