Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.rtc2.IDirectCdnStreamingEventHandler Interface Reference

Public Member Functions

void onDirectCdnStreamingStateChanged (DirectCdnStreamingState state, DirectCdnStreamingReason reason, String message)
 Occurs when the CDN streaming state changes. More...
 
void onDirectCdnStreamingStats (DirectCdnStreamingStats stats)
 Reports the CDN streaming statistics. More...
 

Detailed Description

Deprecated:
v4.6.0.

Member Function Documentation

◆ onDirectCdnStreamingStateChanged()

void io.agora.rtc2.IDirectCdnStreamingEventHandler.onDirectCdnStreamingStateChanged ( DirectCdnStreamingState  state,
DirectCdnStreamingReason  reason,
String  message 
)

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

◆ onDirectCdnStreamingStats()

void io.agora.rtc2.IDirectCdnStreamingEventHandler.onDirectCdnStreamingStats ( DirectCdnStreamingStats  stats)

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 DirectCdnStreamingStats.