IDirectCdnStreamingEventHandler

The IDirectCdnStreamingEventHandler interface class is used by the SDK to send CDN streaming event notifications to the App. The App receives the SDK's event notifications by inheriting methods of this interface class.

OnDirectCdnStreamingStateChanged

Callback for CDN streaming state changes.

public virtual void OnDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_REASON reason, string message)

After the host starts pushing the stream directly to the CDN, when the streaming state changes, the SDK triggers this callback to report the new state, error code, and message. You can use this information to troubleshoot issues.

Parameters

state
Current streaming state. See DIRECT_CDN_STREAMING_STATE.
reason
Reason for the streaming state change. See DIRECT_CDN_STREAMING_REASON.
message
Message corresponding to the state change.

OnDirectCdnStreamingStats

Callback for CDN streaming statistics.

public virtual void OnDirectCdnStreamingStats(DirectCdnStreamingStats stats) { }

During the process of pushing the stream directly to the CDN from the host, the SDK triggers this callback every 1 second.

Parameters

stats
Current streaming statistics. See DirectCdnStreamingStats.