onDirectCdnStreamingStateChanged

Occurs when the CDN streaming state changes.

virtual void onDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_ERROR error, const char* message)  {
  (void)state;
  (void)error;
  (void)message;
};

When the host directly pushes streams to the CDN, if the streaming state changes, the SDK triggers this callback to report the changed streaming state, error codes, and other information. You can troubleshoot issues by referring to this callback.

Parameters

state
The current CDN streaming state. See DIRECT_CDN_STREAMING_STATE.
error
The CDN streaming error. See DIRECT_CDN_STREAMING_ERROR.
message
The information about the changed streaming state.