QNRTCClientEvent
Index
Method
Method
onAudioSubscribed
- onAudioSubscribed(params: {remoteUserID:string,trackList:QNRemoteAudioTrack[]}): void
-
当订阅 audio Track 成功时会触发此回调
Parameters-
params: {remoteUserID:string,trackList:QNRemoteAudioTrack[]}
Returns void -
onConnectionStateChanged
- onConnectionStateChanged(params: {info:QNConnectionDisconnectedInfo,state:QNConnectionState}): void
-
当房间状态改变时会触发此回调
Parameters-
params: {info:QNConnectionDisconnectedInfo,state:QNConnectionState}
Returns void -
onErrorLiveStreaming
- onErrorLiveStreaming(params: {info:QNLiveStreamingErrorInfo,streamID:string}): void
-
转推任务出错时触发此回调
Parameters-
params: {info:QNLiveStreamingErrorInfo,streamID:string}
Returns void -
onMessageReceived
- onMessageReceived(message: QNCustomMessage): void
-
当收到自定义消息时发此回调
Parameters-
message: QNCustomMessage
Returns void -
onStartLiveStreaming
- onStartLiveStreaming(params: {streamID:string}): void
-
转推任务成功创建时触发此回调
Parameters-
params: {streamID:string}
Returns void -
onStoppedLiveStreaming
- onStoppedLiveStreaming(params: {streamID:string}): void
-
转推任务成功停止时触发此回调
Parameters-
params: {streamID:string}
Returns void -
onUpdatedLiveStreaming
- onUpdatedLiveStreaming(params: {streamID:string}): void
-
转推任务合流布局更新时触发此回调
Parameters-
params: {streamID:string}
Returns void -
onUserJoined
- onUserJoined(params: {remoteUserID:string,userData:string}): void
-
当远端用户加入房间时会触发此回调
Parameters-
params: {remoteUserID:string,userData:string}
Returns void -
onUserLeft
- onUserLeft(params: {remoteUserID:string}): void
-
当远端用户离开房间时会触发此回调
Parameters-
params: {remoteUserID:string}
Returns void -
onUserPublished
- onUserPublished(params: {remoteUserID:string,trackList:(QNRemoteVideoTrack | QNRemoteAudioTrack)[]}): void
-
当远端 Track 发布时会触发此回调
Parameters-
params: {remoteUserID:string,trackList:(QNRemoteVideoTrack | QNRemoteAudioTrack)[]}
Returns void -
onUserReconnected
- onUserReconnected(params: {remoteUserID:string}): void
-
当远端用户重连成功时会触发此回调
Parameters-
params: {remoteUserID:string}
Returns void -
onUserReconnecting
- onUserReconnecting(params: {remoteUserID:string}): void
-
当远端用户进入重连时会触发此回调
Parameters-
params: {remoteUserID:string}
Returns void -
onUserUnpublished
- onUserUnpublished(params: {remoteUserID:string,trackList:(QNRemoteVideoTrack | QNRemoteAudioTrack)[]}): void
-
当远端 Track 取消发布时会触发此回调
Parameters-
params: {remoteUserID:string,trackList:(QNRemoteVideoTrack | QNRemoteAudioTrack)[]}
Returns void -
onVideoSubscribed
- onVideoSubscribed(params: {remoteUserID:string,trackList:QNRemoteVideoTrack[]}): void
-
当订阅 video Track 成功时会触发此回调
Parameters-
params: {remoteUserID:string,trackList:QNRemoteVideoTrack[]}
Returns void -
文档反馈
(如有产品使用问题,请 提交工单)