rtmpStreamingStateChanged property
RtmpStreamingStateCallback?
rtmpStreamingStateChanged
getter/setter pair
Occurs when the state of the RTMP streaming changes.
The SDK triggers this callback to report the result of the local user calling the RtcEngine.addPublishStreamUrl or RtcEngine.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 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 RTMP URL address. - RtmpStreamingState
state
: The RTMP streaming state. - RtmpStreamingErrorCode
errCode
: The detailed error information for streaming.
Implementation
RtmpStreamingStateCallback? rtmpStreamingStateChanged;