rtcRoom$onLocalStreamStats$info$stats method

FutureOr<void> rtcRoom$onLocalStreamStats$info$stats(
  1. ByteRTCRoom rtcRoom,
  2. NSString streamId,
  3. ByteRTCStreamInfo info,
  4. 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 ByteRTCRoom object. @param streamId Stream ID. @param info Stream information. @param stats Current room local stream data statistics. See: ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats}

Implementation

FutureOr<void> rtcRoom$onLocalStreamStats$info$stats(
    ByteRTCRoom rtcRoom,
    NSString streamId,
    ByteRTCStreamInfo info,
    ByteRTCLocalStreamStats stats) async {}