CloudHub Docs
Download Documents

RTS


CloudHubRTS CPP

IMixingUpStreamEventHandler

onPushStatusUpdate

Occurs when the push status changes

void onPushStatusUpdate(cloudhub::IMixingUpStream* stream,
                                  CONNECTION_STATE_TYPE type)

Parameters

ParameterDescription
streamIMixingUpStream object
typeThe state of connection

onStatisticsUpdate

Occurs when statistics change

void onStatisticsUpdate(cloudhub::IMixingUpStream* stream,
                                  cloudhub::RtcStats& stats)

Parameters

ParameterDescription
streamIMixingUpStream object
statsStatistics of the RtcStats

onError

Reports an error during SDK runtime.

void onError(cloudhub::IMixingUpStream* stream, int code, const char* msg) 

Parameters

ParameterDescription
streamIMixingUpStream object
errError code
msgPointer to the error message

Details

In most cases, the SDK cannot fix the issue and resume running. The SDK requires the application to take action or informs the user about the issue.