rtmpStreamingStateChanged property
Occurs when the state of the RTMP or RTMPS streaming changes.
The SDK triggers this callback to report the result of the local user calling the RtcChannel.addPublishStreamUrl or RtcChannel.removePublishStreamUrl method. This callback returns the URL and its current streaming state. When the streaming state is RtmpStreamingState.Failure, see the errCode
parameter for details.
This callback indicates the state of the RTMP or RTMPS streaming. When exceptions occur, you can troubleshoot issues by referring to the detailed error descriptions in the errCode
parameter.
The RtmpStreamingStateCallback
typedef includes the following parameters:
- String
url
: The CDN streaming URL. - RtmpStreamingState
state
: The RTMP or RTMPS streaming state. - RtmpStreamingErrorCode
errCode
: The detailed error information for streaming.
Implementation
RtmpStreamingStateCallback? rtmpStreamingStateChanged;