onPublisherQualityUpdate method
Callback for current stream publishing quality.
Available since: 1.1.0
Description: After calling the startPublishingStream
successfully, the callback will be received every 3 seconds default(If you need to change the time, please contact the instant technical support to configure). Through the callback, the collection frame rate, bit rate, RTT, packet loss rate and other quality data of the published audio and video stream can be obtained, and the health of the publish stream can be monitored in real time.You can monitor the health of the published audio and video streams in real time according to the quality parameters of the callback function, in order to show the uplink network status in real time on the device UI.
Caution: If you does not know how to use the parameters of this callback function, you can only pay attention to the level
field of the quality
parameter, which is a comprehensive value describing the uplink network calculated by SDK based on the quality parameters.
Related callbacks: After calling the startPlayingStream
successfully, the callback onPlayerQualityUpdate will be received every 3 seconds. You can monitor the health of play streams in real time based on quality data such as frame rate, code rate, RTT, packet loss rate, etc.
streamID
Stream ID.quality
Publishing stream quality, including audio and video framerate, bitrate, RTT, etc.
Implementation
void onPublisherQualityUpdate(
String streamID,
ZegoPublishStreamQuality quality,
) {}