onLeaveRoom property

OnLeaveRoomType? onLeaveRoom
getter/setter pair

Callback about successfully leaving the room.

After the user calls RTCRoom.leaveRoom, the SDK will stop publishing and subscribing to all streams and will notify the user of the success of leaving the room through this callback after releasing all audio and video resources associated with the call.

Notes:

  • After leaving the room, if the App needs to use the system audio/video device, 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.
  • If the RTCVideo.destroy is called immediately after the user leaves the room by calling the RTCRoom.leaveRoom method, this callback event will not be received if the RTC engine is destroyed.

Implementation

OnLeaveRoomType? onLeaveRoom;