onDirectCdnStreamingStateChanged property

void Function(DirectCdnStreamingState state, DirectCdnStreamingReason reason, String message)? onDirectCdnStreamingStateChanged
final

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.

  • state The current CDN streaming state. See DirectCdnStreamingState.
  • reason Reasons for changes in the status of CDN streaming. See DirectCdnStreamingReason.
  • message The information about the changed streaming state.

Implementation

final void Function(
    DirectCdnStreamingState state,
    DirectCdnStreamingReason reason,
    String message)? onDirectCdnStreamingStateChanged;