The IRtmpStreamingObserver class, which monitors events in of the live streaming service.
◆ onRtmpStreamingStateChanged()
Occurs when the state of the RTMP streaming changes.
The SDK triggers this callback to report the result of the local user calling addPublishStreamUrl
or removePublishStreamUrl
.
This callback also reports the streaming URL and its current streaming state. When exceptions occur, you can troubleshoot issues by referring to the detailed error description in the errCode
parameter.
- Parameters
-
◆ onRtmpStreamingEvent()
Reports events during the RTMP or RTMPS streaming.
- Since
- v3.1.0
- Parameters
-
◆ onTranscodingUpdated()
virtual void onTranscodingUpdated |
( |
| ) |
|
|
inlinevirtual |
Occurs when the publisher's transcoding settings are updated.
When the LiveTranscoding
class in the setLiveTransocding
method updates, the SDK triggers this callback to report the update information.
- Note
- If you call the
setLiveTranscoding
method to set the LiveTranscoding
class for the first time, the SDK does not trigger this callback.