onLocalStreamStats method

FutureOr<void> onLocalStreamStats(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. LocalStreamStats 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 LocalStreamStats{@link #LocalStreamStats} type, including the sent audio & video bit rate, sent frame rate, encoded frame rate, network quality, etc. @param streamId The ID of the stream, used to identify a specific local stream. @param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}. @param stats Audio & video stream and network status statistics. See LocalStreamStats{@link #LocalStreamStats}.

Implementation

FutureOr<void> onLocalStreamStats(
    String streamId, StreamInfo streamInfo, LocalStreamStats stats) async {}