onStop method

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

@detail callback @author wangzhanqiang @brief When receiving the callback, you need to stop pushing custom encoded video frames to the SDK @param streamId The ID of the encoded stream that needs to be stopped @param streamInfo The properties of the encoded stream that needs to be stopped

Implementation

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