onRateUpdate method

FutureOr<void> onRateUpdate(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. int videoIndex,
  4. int fps,
  5. int bitrateKbps,
)

@detail callback @author wangzhanqiang @brief When the frame rate or bit rate of a custom encoded stream changes, the callback is triggered @param streamId The ID of the encoded stream that changes @param streamInfo The properties of the encoded stream that changes @param videoIndex The subscript of the corresponding encoded stream @param fps The frame rate after the change, the unit: fps @param bitrateKbps The code rate after the change, the unit: kbps

Implementation

FutureOr<void> onRateUpdate(String streamId, StreamInfo streamInfo,
    int videoIndex, int fps, int bitrateKbps) async {}