实时音视频

  • 实时音视频 > API 文档 > Uniapp >QNRTCClinetEvent

    QNRTCClinetEvent

    最近更新时间:2022-04-01 14:25:59

    Index
    Method
    Method
    onAudioSubscribed
    • onAudioSubscribed(params: {remoteUserID:string,trackList:QNRemoteAudioTrack[]}): void
    • 当订阅 audio Track 成功时会触发此回调

      Parameters
      Returns void
    onConnectionStateChanged
    onErrorLiveStreaming
    onMessageReceived
    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
    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
    onVideoSubscribed
    • onVideoSubscribed(params: {remoteUserID:string,trackList:QNRemoteVideoTrack[]}): void
    • 当订阅 video Track 成功时会触发此回调

      Parameters
      Returns void
    以上内容是否对您有帮助?
  • Qvm free helper
    Close