Skip to content

Instantly share code, notes, and snippets.

@larryluoo
Created June 29, 2022 07:11
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/18b4edb5bdaae08e31fa298193dd30af to your computer and use it in GitHub Desktop.
Save larryluoo/18b4edb5bdaae08e31fa298193dd30af to your computer and use it in GitHub Desktop.
TakesASpeakerSeat
// Takes a speaker seat.
int seatIndex = 2; // The ID of the seat be taken.
/**
* Take the speaker seat.
* <p>Description: This method can be used to help a listener to take a speaker seat to speak. And at the same
* time,the microphone will be enabled, the audio streams will be published.</>
* <p>Call this method at: After joining the room</>
*
* @param seatIndex seatIndex to take
* @param callback operation result callback
*/
ZegoRoomManager.getInstance().speakerSeatService.takeSeat(seatIndex,new ZegoRoomCallback(){
@Override
public void roomCallback(int errorCode){
// Callback for the result of take a speaker seat.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment