onRtmpStreamingStateChanged property

void Function(String url, RtmpStreamPublishState state, RtmpStreamPublishReason errCode)? onRtmpStreamingStateChanged
final

Occurs when the media push state changes. When the media push state changes, the SDK triggers this callback and reports the URL address and the current state of the media push. This callback indicates the state of the media push. When exceptions occur, you can troubleshoot issues by referring to the detailed error descriptions in the error code parameter.

  • url The URL address where the state of the media push changes.
  • state The current state of the media push. See RtmpStreamPublishState .
  • errCode The detailed error information for the media push. See RtmpStreamPublishErrorType .

Implementation

final void Function(String url, RtmpStreamPublishState state,
    RtmpStreamPublishReason errCode)? onRtmpStreamingStateChanged;