exitRoom abstract method

void exitRoom()

Exit room

Calling this API will allow the user to leave the current audio or video room and release the camera, mic, speaker, and other device resources.

After resources are released, the SDK will use the TRTCCloudListener.onExitRoom callback to notify you.

If you need to call enterRoom again or switch to the SDK of another provider, it is recommended to wait until you receive the TRTCCloudListener.onExitRoom callback to avoid issues with the camera or mic being occupied.

Implementation

void exitRoom();