onRateUpdate property
FutureOr<void> Function(String streamId, int videoIndex, int fps, int bitrateKbps)?
onRateUpdate
getter/setter pair
@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> Function(
String streamId, int videoIndex, int fps, int bitrateKbps)? onRateUpdate;