onRequestKeyFrame method

FutureOr<void> onRequestKeyFrame(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. int videoIndex
)

@detail callback @author wangzhanqiang @brief This callback is used to inform the stream publisher that a keyframe needs to be regenerated. @param streamId Remote encoded stream ID @param streamInfo Remote encoded stream property @param videoIndex Subscript of the corresponding encoded stream

Implementation

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