joinChannelSuccess property
UidWithElapsedCallback?
joinChannelSuccess
getter/setter pair
Occurs when the local user joins a specified channel.
If the uid is not specified when calling RtcChannel.joinChannel, the server automatically assigns a uid.
The UidWithElapsedCallback
typedef includes the following parameters:
- int
uid
: This parameter has the following definitions in different events:- userJoined: ID of the user or host who joins the channel.
firsRemoteAudioFrame
: User ID of the remote user.firstRemoteAudioDecoded
: User ID of the remote user sending the audio stream.- joinChannelSuccess: User ID.
- rejoinChannelSuccess: User ID.
- int
elapsed
:- userJoined: Time delay (ms) from the local user calling RtcEngine.joinChannel or RtcEngine.setClientRole until this callback is triggered.
firsRemoteAudioFrame
: Time elapsed (ms) from the local user calling RtcEngine.joinChannel until this callback is triggered.firstRemoteAudioDecoded
: Time elapsed (ms) from the local user calling RtcEngine.joinChannel until the SDK triggers this callback.- joinChannelSuccess: Time elapsed (ms) from the local user calling RtcChannel.joinChannel until this callback is triggered.
- rejoinChannelSuccess: Time elapsed (ms) from the local user starting to reconnect until this callback is triggered.
Implementation
UidWithElapsedCallback? joinChannelSuccess;