Agora RTC Objective-C API Reference  Refactor
Instance Methods
<AgoraDirectCdnStreamingEventDelegate> Protocol Reference

Inherits <NSObject>.

Instance Methods

(void) - onDirectCdnStreamingStateChanged:reason:message:
 
(void) - onDirectCdnStreamingStats:
 

Detailed Description

The event handler for direct cdn streaming

Deprecated:
v4.6.0.

Method Documentation

◆ onDirectCdnStreamingStateChanged:reason:message:

- (void) onDirectCdnStreamingStateChanged: (AgoraDirectCdnStreamingState state
reason: (AgoraDirectCdnStreamingReason reason
message: (NSString *_Nullable)  message 
optional

Occurs when the CDN streaming state changes.

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
stateThe current CDN streaming state. See AgoraDirectCdnStreamingState.
reasonReasons for changes in the status of CDN streaming. See AgoraDirectCdnStreamingReason.
messageThe information about the changed streaming state.

◆ onDirectCdnStreamingStats:

- (void) onDirectCdnStreamingStats: (AgoraDirectCdnStreamingStats *_Nonnull)  stats
optional

Reports the CDN streaming statistics.

When the host directly pushes media streams to the CDN, the SDK triggers this callback every one second.

Parameters
statsThe statistics of the current CDN streaming. See AgoraDirectCdnStreamingStats.