rtcRoom$onLeaveRoom method
@detail callback
@region Multiple rooms
@author luomingkang
@brief Leaves the game room successfully callback.
When the user calls the leaveRoom{@link #ByteRTCGameRoom#leaveRoom} method, the SDK stops all publish subscription streams and releases all call-related audio & video resources. This callback notifies the user when the SDK completes all resource releases.
@param rtcRoom ByteRTCGameRoom instance.
@param stats Reserved parameter.
@note
- After the user calls the leaveRoom{@link #ByteRTCGameRoom#leaveRoom} method to leave the game room, if destroy{@link #ByteRTCGameRoom#destroy} is called to destroy the room instance method is called to destroy the RTC engine immediately, this callback event will not be received.
- If the app needs to use the system audio & video device after leaving the game room, it is recommended to initialize the audio & video device after receiving this callback, otherwise the initialization may fail due to the SDK occupying the audio & video device.
Implementation
FutureOr<void> rtcRoom$onLeaveRoom(
ByteRTCGameRoom rtcRoom, ByteRTCRoomStats stats) async {}