Skip to content

Instantly share code, notes, and snippets.

@larryluoo
Created June 29, 2022 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larryluoo/ab441941b29aafabe838b251401dad56 to your computer and use it in GitHub Desktop.
Save larryluoo/ab441941b29aafabe838b251401dad56 to your computer and use it in GitHub Desktop.
joinRoom
String roomID = "ROOM_ID";
/**
* Join a room.
* @param roomID refers to the ID of the room you want to join, and cannot be null.
* @param token token refers to the authentication token.
* @param callback callback refers to the callback for join a room.
*/
ZegoRoomManager.getInstance().roomService.joinRoom(roomID,token,new ZegoRoomCallback() {
@Override
public void roomCallback(int errorCode) {
// Callback for the result of join a live audio room.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment