diff --git a/apps/client/src/widgets/type_widgets/file/Video.tsx b/apps/client/src/widgets/type_widgets/file/Video.tsx
index f160afb806..00df647138 100644
--- a/apps/client/src/widgets/type_widgets/file/Video.tsx
+++ b/apps/client/src/widgets/type_widgets/file/Video.tsx
@@ -51,6 +51,7 @@ export default function VideoPreview({ note }: { note: FNote }) {
@@ -254,6 +255,26 @@ function PlaybackSpeed({ videoRef }: { videoRef: RefObject
})
);
}
+function LoopButton({ videoRef }: { videoRef: RefObject }) {
+ const [loop, setLoop] = useState(false);
+
+ const toggle = () => {
+ const video = videoRef.current;
+ if (!video) return;
+ video.loop = !video.loop;
+ setLoop(video.loop);
+ };
+
+ return (
+
+ );
+}
+
function RotateButton({ videoRef }: { videoRef: RefObject }) {
const [rotation, setRotation] = useState(0);