connectOtherRoom()
API in TRTCCloud
will set up a video call between two anchors from different rooms. The caller will receive the onConnectOtherRoom()
callback, which can be used to determine whether the cross-room call is successful. If it is successful, all users in both rooms will receive the onUserVideoAvailable()
callback.userId
of the anchor to compete withERR_NULL
indicates a successful switch. For more information, please see Error Codes.
Listener type enumeration