onStop$info method

FutureOr<void> onStop$info(
  1. dynamic streamId,
  2. dynamic info
)
override

@detail callback @author wangzhanqiang @brief When receiving the callback, you need to stop pushing custom encoded video frames to the SDK @param streamId Custom encoded stream ID @param info Custom encoded stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}

Implementation

FutureOr<void> onStop$info(dynamic streamId, dynamic info) async {
  if ($instance == null || $instance is! IExternalVideoEncoderEventHandler) {
    return;
  }
  return ($instance as IExternalVideoEncoderEventHandler)
      .onStop
      ?.call(streamId.toString());
}