实时音视频 SPARKRTC-事件回调(IHRTCConnection):onStreamPublishStateChange

时间:2024-03-25 20:33:11

onStreamPublishStateChange

void onStreamPublishStateChange(int code, const char* taskId, const HRTCUrlStatusList * urlStatu);

功能说明

RTMP推流状态回调。

回调参数

  • code:错误码,成功为0,失败参考错误码HRTCErrorCode
  • taskId:任务Id。
  • urlStatu:推流的url状态,具体请参见HRTCUrlStatusList
support.huaweicloud.com/csdk-rtc/rtc_05_0115.html