rtcRoom$onLocalStreamStats$info$stats method
- ByteRTCGameRoom rtcRoom,
- NSString streamId,
- ByteRTCStreamInfo info,
- ByteRTCLocalStreamStats stats,
@detail callback
@author yejing
@brief Local stream data statistics and network quality callback.
After the local user publishes the flow successfully, the SDK will periodically (2s) notify the user through this callback event of the quality statistics of the published flow during this reference period.
Statistics are passed to the user through the callback parameters of the ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} type, including the sent audio & video bit rate, sent frame rate, encoded frame rate, network quality, etc.
@param rtcRoom ByteRTCGameRoom instance.
@param streamId Stream ID.
@param info Stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}.
@param stats Current room local stream data statistics. See: ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats}
Implementation
FutureOr<void> rtcRoom$onLocalStreamStats$info$stats(
ByteRTCGameRoom rtcRoom,
NSString streamId,
ByteRTCStreamInfo info,
ByteRTCLocalStreamStats stats) async {}