Created
June 29, 2022 07:11
-
-
Save larryluoo/18b4edb5bdaae08e31fa298193dd30af to your computer and use it in GitHub Desktop.
TakesASpeakerSeat
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
// 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