Interface IDirectCdnStreamingEventHandler

The IDirectCdnStreamingEventHandler interface class is used by the SDK to send event notifications of CDN streaming to your app. Your app can get those notifications through methods that inherit this interface class.

Hierarchy

  • IDirectCdnStreamingEventHandler

Methods

  • 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

    • state: DirectCdnStreamingState

      The current CDN streaming state. See DirectCdnStreamingState.

    • reason: DirectCdnStreamingReason

      Reasons for changes in the status of CDN streaming. See DirectCdnStreamingReason.

    • message: string

      The information about the changed streaming state.

    Returns void

  • Reports the CDN streaming statistics.

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

    Parameters

    Returns void

Generated using TypeDoc