From 147213d99ec573d06b0a54c68732acfe4fa32adc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Jan 2026 08:09:47 +0000 Subject: [PATCH 1/4] Initial plan From e5ea50b3870adaccd04c52a431268abe833d0f4b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Jan 2026 08:12:26 +0000 Subject: [PATCH 2/4] Apply PR #20 changes: add forwardRef to Video component Co-authored-by: imagekitio <45416977+imagekitio@users.noreply.github.com> --- src/components/Video.tsx | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/components/Video.tsx b/src/components/Video.tsx index 610c300..3a2fba5 100644 --- a/src/components/Video.tsx +++ b/src/components/Video.tsx @@ -1,5 +1,5 @@ import { buildSrc } from "@imagekit/javascript"; -import React, { useContext } from "react"; +import React, { forwardRef, useContext } from "react"; import type { SrcProps } from "../interface"; import { ImageKitContext } from "../provider/ImageKit"; @@ -21,8 +21,21 @@ export type IKVideoProps = Omit & SrcProp * transformation={[{ width: 500, height: 500 }]} // Add ImageKit transformations * /> * ``` + * + * @example + * ```jsx + * // With ref for programmatic control + * const videoRef = useRef(null); + *