Skip to content

Commit f6b1931

Browse files
committed
Add playback rate adjustment to HydraulicMobileVideo component
1 parent 2ebdf49 commit f6b1931

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/OBS_Components/ADHDLayout/components/HydraulicMobileVideo.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
import { useEffect, useRef } from "react";
2+
13
export function HydraulicMobileVideo() {
4+
const videoRef = useRef<HTMLVideoElement>(null);
5+
6+
useEffect(() => {
7+
if (videoRef.current) {
8+
videoRef.current.playbackRate = 2.5;
9+
}
10+
}, []);
11+
212
return (
313
<video
14+
ref={videoRef}
415
autoPlay
516
loop
617
muted

0 commit comments

Comments
 (0)