onRtmpStreamingStateChanged property
void Function(String url, RtmpStreamPublishState state, RtmpStreamPublishReason reason)?
onRtmpStreamingStateChanged
final
Occurs when the state of Media Push changes.
When the state of Media Push 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.reason
Reasons for the changes in the Media Push status. See RtmpStreamPublishReason.
Implementation
final void Function(String url, RtmpStreamPublishState state,
RtmpStreamPublishReason reason)? onRtmpStreamingStateChanged;