Created
June 29, 2022 07:06
-
-
Save larryluoo/0ba8e01fdd2a3fa5c637ec9216593a89 to your computer and use it in GitHub Desktop.
createRoom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String roomID = "YOUR_ROOM_ID"; | |
String roomName = "YOUR_ROOM_NAME"; | |
/** | |
* Create a room. | |
* @param roomID roomID refers to the room ID, the unique identifier of the room. This is required to join a room and cannot be null. | |
* @param roomName roomName refers to the room name. This is used for display in the room and cannot be null. | |
* @param token token refers to the authentication token. | |
* @param callback callback refers to the callback for create a room. | |
*/ | |
ZegoRoomManager.getInstance().roomService.createRoom(roomID, roomName, token, new ZegoRoomCallback() { | |
@Override | |
public void roomCallback(int errorCode) { | |
// Callback for the result of create a live audio room. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment