Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: apply recent fixes to Embed videos (#786)

Ameer Al Ashhab7150a002e246
diff --git a/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx b/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx
index 8faf27311..8ee1fbd2a 100644
--- a/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx
+++ b/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx
@@ -14,6 +14,7 @@ import { useTranscript } from "hooks/use-transcript";
import { AnimatePresence, motion } from "framer-motion";
import { Logo, Avatar } from "@cap/ui";
import { CapVideoPlayer } from "@/app/s/[videoId]/_components/CapVideoPlayer";
+import { HLSVideoPlayer } from "@/app/s/[videoId]/_components/HLSVideoPlayer";
declare global {
interface Window {
@@ -138,22 +139,22 @@ export const EmbedVideo = forwardRef<
const publicEnv = usePublicEnv();
let videoSrc: string;
- let videoType: string = "video/mp4";
+ let enableCrossOrigin = false;
+
if (data.source.type === "desktopMP4") {
videoSrc = `/api/playlist?userId=${data.ownerId}&videoId=${data.id}&videoType=mp4`;
+ // Start with CORS enabled for desktopMP4, but CapVideoPlayer will dynamically disable if needed
+ enableCrossOrigin = true;
} else if (
NODE_ENV === "development" ||
((data.skipProcessing === true || data.jobStatus !== "COMPLETE") &&
data.source.type === "MediaConvert")
) {
videoSrc = `/api/playlist?userId=${data.ownerId}&videoId=${data.id}&videoType=master`;
- videoType = "application/x-mpegURL";
} else if (data.source.type === "MediaConvert") {
videoSrc = `${publicEnv.s3BucketUrl}/${data.ownerId}/${data.id}/output/video_recording_000.m3u8`;
- videoType = "application/x-mpegURL";
} else {
videoSrc = `${publicEnv.s3BucketUrl}/${data.ownerId}/${data.id}/combined-source/stream.m3u8`;
- videoType = "application/x-mpegURL";
}
@@ -186,7 +187,24 @@ export const EmbedVideo = forwardRef<
<>
<div className="relative w-screen h-screen rounded-xl">
- <CapVideoPlayer hlsVideo={videoType === "application/x-mpegURL"} mediaPlayerClassName="w-full h-full" videoSrc={videoSrc} chaptersSrc={chaptersUrl || ""} captionsSrc={subtitleUrl || ""} videoRef={videoRef} />
+ {data.source.type === "desktopMP4" ? (
+ <CapVideoPlayer
+ mediaPlayerClassName="w-full h-full"
+ videoSrc={videoSrc}
+ chaptersSrc={chaptersUrl || ""}
+ captionsSrc={subtitleUrl || ""}
+ videoRef={videoRef}
+ enableCrossOrigin={enableCrossOrigin}
+ />
+ ) : (
+ <HLSVideoPlayer
+ mediaPlayerClassName="w-full h-full"
+ videoSrc={videoSrc}
+ chaptersSrc={chaptersUrl || ""}
+ captionsSrc={subtitleUrl || ""}
+ videoRef={videoRef}
+ />
+ )}
</div>
<AnimatePresence>
diff --git a/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
index 3013ae1e3..abe62a454 100644
--- a/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
+++ b/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
@@ -83,7 +83,7 @@ export function CapVideoPlayer({
const isCloudflareR2 = finalUrl.includes('.r2.cloudflarestorage.com');
const isS3 = finalUrl.includes('.s3.') || finalUrl.includes('amazonaws.com');
const isCorsIncompatible = isCloudflareR2 || isS3;
-
+
// Set CORS based on URL compatibility BEFORE video element is created
if (isCorsIncompatible) {
console.log('CapVideoPlayer: Detected CORS-incompatible URL, disabling crossOrigin:', finalUrl);
@@ -138,13 +138,6 @@ export function CapVideoPlayer({
}
};
- const handleLoadedMetadata = () => {
- setVideoLoaded(true);
- if (!hasPlayedOnce) {
- setShowPlayButton(true);
- }
- };
-
const handleLoad = () => {
setVideoLoaded(true);
if (!hasPlayedOnce) {
@@ -293,19 +286,19 @@ export function CapVideoPlayer({
playsInline
autoPlay={autoplay}
>
- <track
- default
- kind="chapters"
- src={chaptersSrc}
- />
- <track
- label="English"
- kind="captions"
- srcLang="en"
- src={captionsSrc}
- default
- />
- </MediaPlayerVideo>
+ <track
+ default
+ kind="chapters"
+ src={chaptersSrc}
+ />
+ <track
+ label="English"
+ kind="captions"
+ srcLang="en"
+ src={captionsSrc}
+ default
+ />
+ </MediaPlayerVideo>
)}
<AnimatePresence>
{showPlayButton && videoLoaded && !hasPlayedOnce && (
diff --git a/apps/web/app/s/[videoId]/_components/MP4VideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/MP4VideoPlayer.tsx
deleted file mode 100644
index e05e475db..000000000
--- a/apps/web/app/s/[videoId]/_components/MP4VideoPlayer.tsx
+++ /dev/null
@@ -1,228 +0,0 @@
-import {
- forwardRef,
- memo,
- useCallback,
- useEffect,
- useImperativeHandle,
- useRef,
- useState,
-} from "react";
-
-interface MP4VideoPlayerProps {
- videoSrc: string;
-}
-
-// million-ignore
-export const MP4VideoPlayer = memo(
- forwardRef<HTMLVideoElement, MP4VideoPlayerProps>(({ videoSrc }, ref) => {
- const videoRef = useRef<HTMLVideoElement>(null);
- const retryCount = useRef(0);
- const retryTimeout = useRef<NodeJS.Timeout | null>(null);
- const startTime = useRef<number>(Date.now());
- const [isLoaded, setIsLoaded] = useState(false);
- const [currentSrc, setCurrentSrc] = useState(videoSrc);
- const [hasError, setHasError] = useState(false);
- const maxRetries = 3;
-
- useImperativeHandle(ref, () => videoRef.current as HTMLVideoElement);
-
- const fetchNewUrl = useCallback(async () => {
- try {
- const timestamp = new Date().getTime();
- const urlWithTimestamp = videoSrc.includes("?")
- ? `${videoSrc}&_t=${timestamp}`
- : `${videoSrc}?_t=${timestamp}`;
-
- const response = await fetch(urlWithTimestamp, { method: "HEAD" });
-
- if (response.redirected) {
- setCurrentSrc(response.url);
- return response.url;
- } else {
- return urlWithTimestamp;
- }
- } catch (error) {
- console.error("Error fetching new video URL:", error);
- const timestamp = new Date().getTime();
- return videoSrc.includes("?")
- ? `${videoSrc}&_t=${timestamp}`
- : `${videoSrc}?_t=${timestamp}`;
- }
- }, [videoSrc]);
-
- const reloadVideo = useCallback(async () => {
- const video = videoRef.current;
- if (!video || retryCount.current >= maxRetries) return;
-
- console.log(
- `Reloading video (attempt ${retryCount.current + 1}/${maxRetries})`
- );
-
- const currentPosition = video.currentTime;
- const wasPlaying = !video.paused;
-
- const newUrl = await fetchNewUrl();
-
- const sourceElement = video.querySelector("source");
- if (sourceElement) {
- sourceElement.setAttribute("src", newUrl);
- }
-
- video.load();
-
- if (currentPosition > 0) {
- const restorePosition = () => {
- video.currentTime = currentPosition;
- if (wasPlaying) {
- video
- .play()
- .catch((err) => console.error("Error resuming playback:", err));
- }
- video.removeEventListener("canplay", restorePosition);
- };
- video.addEventListener("canplay", restorePosition);
- }
-
- retryCount.current += 1;
- }, [fetchNewUrl, maxRetries]);
-
- const setupRetry = useCallback(() => {
- if (retryTimeout.current) {
- clearTimeout(retryTimeout.current);
- }
-
- if (retryCount.current >= maxRetries) {
- console.error(`Video failed to load after ${maxRetries} attempts`);
- setHasError(true);
- return;
- }
-
- const elapsedMs = Date.now() - startTime.current;
- if (elapsedMs > 60000) {
- console.error("Video failed to load after 1 minute");
- setHasError(true);
- return;
- }
-
- let retryInterval: number;
- if (retryCount.current === 0) {
- retryInterval = 2000;
- } else if (retryCount.current === 1) {
- retryInterval = 5000;
- } else {
- retryInterval = 10000;
- }
-
- retryTimeout.current = setTimeout(() => {
- reloadVideo();
- }, retryInterval);
- }, [reloadVideo, maxRetries]);
-
- useEffect(() => {
- setCurrentSrc(videoSrc);
- setIsLoaded(false);
- setHasError(false);
- retryCount.current = 0;
- startTime.current = Date.now();
-
- if (retryTimeout.current) {
- clearTimeout(retryTimeout.current);
- retryTimeout.current = null;
- }
- }, [videoSrc]);
-
- useEffect(() => {
- const video = videoRef.current;
- if (!video) return;
-
- const handleLoadedData = () => {
- console.log("Video loaded successfully");
- setIsLoaded(true);
- setHasError(false);
- if (videoRef.current) {
- videoRef.current.dispatchEvent(new Event("canplay"));
- }
- if (retryTimeout.current) {
- clearTimeout(retryTimeout.current);
- retryTimeout.current = null;
- }
- };
-
- const handleError = (e: ErrorEvent) => {
- console.error("Video loading error:", e);
- if (!isLoaded && !hasError) {
- setupRetry();
- }
- };
-
- const handleCanPlay = () => {
- setIsLoaded(true);
- setHasError(false);
- if (retryTimeout.current) {
- clearTimeout(retryTimeout.current);
- retryTimeout.current = null;
- }
- };
-
- video.addEventListener("loadeddata", handleLoadedData);
- video.addEventListener("error", handleError as EventListener);
- video.addEventListener("canplay", handleCanPlay);
-
- if (video.readyState === 4) {
- handleLoadedData();
- }
-
- if (!isLoaded && !hasError && retryCount.current === 0) {
- const initialTimeout = setTimeout(() => {
- if (!isLoaded && !hasError) {
- console.log(
- "Video taking longer than expected to load, attempting reload"
- );
- setupRetry();
- }
- }, 10000);
-
- return () => {
- clearTimeout(initialTimeout);
- video.removeEventListener("loadeddata", handleLoadedData);
- video.removeEventListener("error", handleError as EventListener);
- video.removeEventListener("canplay", handleCanPlay);
- if (retryTimeout.current) {
- clearTimeout(retryTimeout.current);
- }
- };
- }
-
- return () => {
- video.removeEventListener("loadeddata", handleLoadedData);
- video.removeEventListener("error", handleError as EventListener);
- video.removeEventListener("canplay", handleCanPlay);
- if (retryTimeout.current) {
- clearTimeout(retryTimeout.current);
- }
- };
- }, [currentSrc, isLoaded, hasError, setupRetry]);
-
- if (hasError) {
- return (
- <div className="flex items-center justify-center w-full h-full bg-black text-white">
- <p>Unable to load video</p>
- </div>
- );
- }
-
- return (
- <video
- id="video-player"
- ref={videoRef}
- className="object-contain w-full h-full"
- preload="auto"
- playsInline
- controls={false}
- muted
- >
- <source src={currentSrc} type="video/mp4" />
- </video>
- );
- })
-);
diff --git a/apps/web/app/s/[videoId]/_components/VideoJs.tsx b/apps/web/app/s/[videoId]/_components/VideoJs.tsx
deleted file mode 100644
index 3ed30f9f5..000000000
--- a/apps/web/app/s/[videoId]/_components/VideoJs.tsx
+++ /dev/null
@@ -1,96 +0,0 @@
-"use client";
-
-import { forwardRef, useRef, useEffect, MutableRefObject } from "react";
-import videojs from "video.js";
-import "video.js/dist/video-js.css";
-import Player from "video.js/dist/types/player";
-
-interface Props {
- onReady?: (player: Player) => void;
- options: {
- autoplay: boolean;
- controls: boolean;
- responsive: boolean;
- fluid: boolean;
- sources: {
- src: string;
- type: string;
- }[];
- }
-}
-
-export const VideoJS = forwardRef<Player | null, Props>(({ options, onReady }: Props, ref) => {
- const videoRef = useRef<HTMLDivElement>(null);
- const playerRef = ref as MutableRefObject<Player | null>;
-
- useEffect(() => {
- if (!videoRef.current) return;
- if (!playerRef.current) {
- const videoElement = document.createElement("video-js");
-
- videoElement.classList.add("vjs-big-play-centered", "vjs-cap");
- videoRef.current.appendChild(videoElement);
-
- const player = (playerRef.current = videojs(videoElement, options, () => {
- onReady && onReady(player);
- }));
-
- } else {
- const player = playerRef.current;
-
- player.autoplay(options.autoplay);
- player.src(options.sources);
- }
- }, [options, videoRef]);
-
- useEffect(() => {
- const player = playerRef.current;
-
- return () => {
- if (player && !player.isDisposed()) {
- player.dispose();
- playerRef.current = null;
- }
- };
- }, [playerRef]);
-
- useEffect(() => {
- const player = playerRef.current;
-
- if (!player) return;
-
- const handleKeyDown = (event: KeyboardEvent) => {
- const tag = (event.target as HTMLElement)?.tagName;
- const isEditable =
- tag === "INPUT" ||
- tag === "TEXTAREA" ||
- tag === "SELECT" ||
- tag === "BUTTON" ||
- (event.target as HTMLElement)?.isContentEditable;
-
- if (isEditable) return;
- if (event.key === " ") {
- event.preventDefault();
- player.paused() ? player.play() : player.pause();
- }
- };
-
- document.addEventListener("keydown", handleKeyDown);
-
- return () => {
- document.removeEventListener("keydown", handleKeyDown);
- };
- }, [playerRef]);
-
- return (
- <div style={{
- height: "100%"
- }} data-vjs-player>
- <div style={{
- height: "100%"
- }} ref={videoRef} />
- </div>
- );
-});
-
-export default VideoJS;
diff --git a/apps/web/app/s/[videoId]/_components/VideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/VideoPlayer.tsx
deleted file mode 100644
index 6d5bd7007..000000000
--- a/apps/web/app/s/[videoId]/_components/VideoPlayer.tsx
+++ /dev/null
@@ -1,112 +0,0 @@
-import Hls from "hls.js";
-import {
- forwardRef,
- memo,
- useEffect,
- useImperativeHandle,
- useRef,
-} from "react";
-
-interface VideoPlayerProps {
- videoSrc: string;
-}
-
-export const VideoPlayer = memo(
- forwardRef<HTMLVideoElement, VideoPlayerProps>(({ videoSrc }, ref) => {
- const videoRef = useRef<HTMLVideoElement>(null);
- const videoHlsInstance = useRef<Hls | null>(null);
-
- useImperativeHandle(ref, () => videoRef.current as HTMLVideoElement);
-
- const initializeHls = (
- src: string,
- media: HTMLMediaElement,
- hlsInstance: React.MutableRefObject<Hls | null>
- ) => {
- const hls = new Hls();
- hls.on(Hls.Events.ERROR, (event, data) => {
- console.error("HLS error:", data);
- if (data.fatal) {
- switch (data.type) {
- case Hls.ErrorTypes.NETWORK_ERROR:
- if (data.details === Hls.ErrorDetails.MANIFEST_LOAD_ERROR) {
- setTimeout(() => {
- console.log("Retrying...");
- hls.loadSource(src);
- }, 500);
- }
- break;
- case Hls.ErrorTypes.MEDIA_ERROR:
- hls.recoverMediaError();
- break;
- default:
- break;
- }
- }
- });
- hlsInstance.current = hls;
- hls.loadSource(src);
- hls.attachMedia(media);
- };
-
- useEffect(() => {
- if (!videoRef.current) return;
-
- const videoElement = videoRef.current;
-
- // Store current position and play state before reinitializing
- const currentPosition = videoElement.currentTime;
- const wasPlaying = !videoElement.paused;
-
- // Add event listener for when HLS is ready to play
- const handleHlsManifestParsed = () => {
- if (videoElement) {
- // Restore position after HLS is ready
- if (currentPosition > 0) {
- videoElement.currentTime = currentPosition;
- if (wasPlaying) {
- videoElement
- .play()
- .catch((err) => console.error("Error resuming playback:", err));
- }
- }
- videoElement.dispatchEvent(new Event("canplay"));
- }
- };
-
- initializeHls(videoSrc, videoRef.current, videoHlsInstance);
-
- // Add event listener for HLS manifest parsed
- if (videoHlsInstance.current) {
- videoHlsInstance.current.on(
- Hls.Events.MANIFEST_PARSED,
- handleHlsManifestParsed
- );
- }
-
- return () => {
- if (videoHlsInstance.current) {
- videoHlsInstance.current.off(
- Hls.Events.MANIFEST_PARSED,
- handleHlsManifestParsed
- );
- videoHlsInstance.current.destroy();
- }
- };
- }, [videoSrc]);
-
- return (
- <video
- id="video-player"
- ref={videoRef}
- className="object-contain absolute top-0 left-0 w-full h-full rounded-lg"
- preload="metadata"
- playsInline
- controls={false}
- muted
- >
- <source src={videoSrc} type="video/mp4" />
- </video>
- );
- })
-);
diff --git a/apps/web/package.json b/apps/web/package.json
index 80f805ab4..7024ee230 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -102,7 +102,6 @@
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"uuid": "^9.0.1",
- "video.js": "^8.23.3",
"zod": "^3.24.4"
},
"devDependencies": {
@@ -116,7 +115,6 @@
"@types/react-dom": "^18",
"@types/react-responsive-masonry": "^2.6.0",
"@types/uuid": "^9.0.8",
- "@types/video.js": "^7.3.58",
"autoprefixer": "^10.4.14",
"eslint": "^9.30.1",
"eslint-config-next": "14.1.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9f55b7e8e..738ef3b7d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -675,9 +675,6 @@ importers:
uuid:
specifier: ^9.0.1
version: 9.0.1
- video.js:
- specifier: ^8.23.3
- version: 8.23.3
zod:
specifier: ^3.24.4
version: 3.25.20
@@ -712,9 +709,6 @@ importers:
'@types/uuid':
specifier: ^9.0.8
version: 9.0.8
- '@types/video.js':
- specifier: ^7.3.58
- version: 7.3.58
autoprefixer:
specifier: ^10.4.14
version: 10.4.21([email protected])
@@ -6172,9 +6166,6 @@ packages:
resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==}
- '@types/[email protected]':
- resolution: {integrity: sha512-1CQjuSrgbv1/dhmcfQ83eVyYbvGyqhTvb2Opxr0QCV+iJ4J6/J+XWQ3Om59WiwCd1MN3rDUHasx5XRrpUtewYQ==}
-
resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==}
@@ -6409,19 +6400,6 @@ packages:
engines: {node: '>=18'}
hasBin: true
- '@videojs/[email protected]':
- resolution: {integrity: sha512-Ch1P3tvvIEezeZXyK11UfWgp4cWKX4vIhZ30baN/lRinqdbakZ5hiAI3pGjRy3d+q/Epyc8Csz5xMdKNNGYpcw==}
- engines: {node: '>=8', npm: '>=5'}
- peerDependencies:
- video.js: ^8.19.0
-
- '@videojs/[email protected]':
- resolution: {integrity: sha512-5iLX6sR2ownbv4Mtejw6Ax+naosGvoT9kY+gcuHzANyUZZ+4NpeNdKMUhb6ag0acYej1Y7cmr/F2+4PrggMiVA==}
- engines: {node: '>=8', npm: '>=5'}
-
- '@videojs/[email protected]':
- resolution: {integrity: sha512-giab+EVRanChIupZK7gXjHy90y3nncA2phIOyG3Ne5fvpiMJzvqYwiTOnEVW2S4CoYcuKJkomat7bMXA/UoUZQ==}
-
resolution: {integrity: sha512-WSN1z931BtasZJlgPp704zJFnQFRg7yzSjkm3MzAWQYe4uXFXlFr1hc5Ac2zae5/HDOz5x1/zDM5Cb54vTCnWw==}
hasBin: true
@@ -6518,10 +6496,6 @@ packages:
resolution: {integrity: sha512-huYf1Lb9IWJmNdKsq18PRdND+qNLKHUG+SGPrcc4/QupWt4aHiZOd4JucxlcfUekFZqkA/HeuVxovUdrnYy7rQ==}
engines: {node: '>=16'}
- '@xmldom/[email protected]':
- resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==}
- engines: {node: '>=10.0.0'}
-
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
@@ -6592,9 +6566,6 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
- resolution: {integrity: sha512-lc+/9s6iJvuaRe5qDlMTpCFjnwpkeOXp8qP3oiZ5jsj1MRg+SBVUmmICrhxHvc8OELSmc+fEyyxAuppY6hrWzw==}
-
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
engines: {node: '>= 6.0.0'}
@@ -7762,9 +7733,6 @@ packages:
resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
- resolution: {integrity: sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==}
-
resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
@@ -8831,9 +8799,6 @@ packages:
engines: {node: '>=12'}
deprecated: Glob versions prior to v9 are no longer supported
- resolution: {integrity: sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==}
-
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
@@ -9277,9 +9242,6 @@ packages:
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==}
-
resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==}
engines: {node: '>=6'}
@@ -9946,9 +9908,6 @@ packages:
resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
hasBin: true
- resolution: {integrity: sha512-CRatFqpjVtMiMaKXxNvuI3I++vUumIXVVT/JpCpdU/FynV/ceVw1qpPyyBNindL+JlPMSesx+WX1QJaZEJSaMQ==}
-
resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}
@@ -10236,9 +10195,6 @@ packages:
resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==}
-
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
engines: {node: '>=4'}
@@ -10368,10 +10324,6 @@ packages:
resolution: {integrity: sha512-GcCH0fySxBurJtvr0dfhz0IxHZjc1RP+F+I8xw+LIwkU1a+7HJx8NCDiww1I5u4Hz6g4eR1JlGADEGJ9r4lSfA==}
- resolution: {integrity: sha512-1FuyEWI5k2HcmhS1HkKnUAQV7yFPfXPht2DnRRGtoiiAAW+ESTbtEXIDpRkwdU+XyrQuwrIym7UkoPKsZ0SyFw==}
- hasBin: true
-
resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}
@@ -10395,11 +10347,6 @@ packages:
resolution: {integrity: sha512-wmunL3uoPhma/tWy8PrDPZkvJpXvSFBwbD3KkC4PG8Ztjfb1X3hRJwGUAQyRz7z99b/ovLm2UTTitrkvStjH4w==}
- resolution: {integrity: sha512-NTxawK/BBELJrYsZThEulyUMDVlLizKdxyAsMuzoCD1eFj97BVaA8D/CvKsKu6FOLYkFojN5CbM9h++ZTZtknA==}
- engines: {node: '>=8', npm: '>=5'}
- hasBin: true
-
resolution: {integrity: sha512-7ytuPQJjQB8TNAYX/H2yhL+iQOnIBjAMam361R7UAL0lOVXWjtdrmoL9HYKqKoLp/8UUTRcvo1QPvK9KL7wA8w==}
engines: {node: '>= 8.0'}
@@ -11038,10 +10985,6 @@ packages:
resolution: {integrity: sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==}
engines: {node: '>=16.20.0'}
- resolution: {integrity: sha512-afRERtHn54AlwaF2/+LFszyAANTCggGilmcmILUzEjvs3XgFZT+xE6+QWQcAGmu4xajy+Xtj7acLOPdx5/eXWQ==}
- hasBin: true
-
resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
engines: {node: '>=8'}
@@ -13063,21 +13006,6 @@ packages:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- resolution: {integrity: sha512-Toe0VLlDZcUhiaWfcePS1OEdT3ATfktm0hk/PELfD7zUoPDHeT+cJf/wZmCy5M5eGVwtGUg25RWPCj1L/1XufA==}
-
- resolution: {integrity: sha512-TfrXJJg1Bv4t6TOCMEVMwF/CoS8iENYsWNKip8zfhB5kTcegiFYezEA0eHAJPU64ZC8NQbxQgOwAsYU8VXbOWA==}
- engines: {node: '>=16', npm: '>=8'}
- peerDependencies:
- video.js: ^8
-
- resolution: {integrity: sha512-YPq+wiKoGy2/M7ccjmlvwi58z2xsykkkfNMyIg4xb7EZQQNwB71hcSsB3o75CqQV7/y5lXkXhI/rsGAS7jfEmQ==}
-
- resolution: {integrity: sha512-yZbBxvA7QMYn15Lr/ZfhhLPrNpI/RmCSCqgIff57GC2gIrV5YfyzLfLyZMj0NnZSAz8syB4N0nHXpZg9MyrMOQ==}
-
resolution: {integrity: sha512-K9zaoHEdLXSVw3akoKcpRaRaGNZcXAnB0XBcke74y0FbXqcR3+rlFxOH/Pi3Maq3K7wAPBGyE91HW0lATfv5Kg==}
hasBin: true
@@ -19546,8 +19474,6 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]': {}
-
'@types/[email protected]': {}
@@ -19613,7 +19539,7 @@ snapshots:
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/typescript-estree': 5.62.0([email protected])
- debug: 4.4.0([email protected])
+ debug: 4.4.0
eslint: 9.30.1([email protected])
optionalDependencies:
typescript: 5.8.3
@@ -19836,28 +19762,6 @@ snapshots:
- rollup
- supports-color
- dependencies:
- '@babel/runtime': 7.27.1
- '@videojs/vhs-utils': 4.1.1
- aes-decrypter: 4.0.2
- global: 4.4.0
- m3u8-parser: 7.2.0
- mpd-parser: 1.3.1
- mux.js: 7.1.0
- video.js: 8.23.3
-
- '@videojs/[email protected]':
- dependencies:
- '@babel/runtime': 7.27.1
- global: 4.4.0
-
- '@videojs/[email protected]':
- dependencies:
- '@babel/runtime': 7.27.1
- global: 4.4.0
- is-function: 1.0.2
-
dependencies:
'@parcel/watcher': 2.5.1
@@ -20030,8 +19934,6 @@ snapshots:
- koa
- next
- '@xmldom/[email protected]': {}
-
@@ -20090,13 +19992,6 @@ snapshots:
- dependencies:
- '@babel/runtime': 7.27.1
- '@videojs/vhs-utils': 4.1.1
- global: 4.4.0
- pkcs7: 1.0.4
-
dependencies:
debug: 4.4.1
@@ -21149,6 +21044,10 @@ snapshots:
dependencies:
ms: 2.1.3
+ dependencies:
+ ms: 2.1.3
+
dependencies:
ms: 2.1.3
@@ -21330,8 +21229,6 @@ snapshots:
domhandler: 5.0.3
entities: 4.5.0
-
@@ -21846,8 +21743,8 @@ snapshots:
'@typescript-eslint/parser': 5.62.0([email protected]([email protected]))([email protected])
eslint: 9.30.1([email protected])
eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 4.6.2([email protected]([email protected]))
@@ -21875,33 +21772,33 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.4.0([email protected])
- eslint: 9.30.1([email protected])
+ eslint: 8.57.1
get-tsconfig: 4.10.0
is-bun-module: 2.0.0
stable-hash: 0.0.5
tinyglobby: 0.2.13
unrs-resolver: 1.7.2
optionalDependencies:
transitivePeerDependencies:
- supports-color
dependencies:
'@nolyfill/is-core-module': 1.0.39
- debug: 4.4.0([email protected])
- eslint: 8.57.1
+ debug: 4.4.0
+ eslint: 9.30.1([email protected])
get-tsconfig: 4.10.0
is-bun-module: 2.0.0
stable-hash: 0.0.5
tinyglobby: 0.2.13
unrs-resolver: 1.7.2
optionalDependencies:
transitivePeerDependencies:
- supports-color
@@ -21916,14 +21813,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 5.62.0([email protected]([email protected]))([email protected])
eslint: 9.30.1([email protected])
eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- supports-color
@@ -21967,7 +21864,7 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.8
@@ -21978,7 +21875,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.30.1([email protected])
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -22935,11 +22832,6 @@ snapshots:
minimatch: 5.1.6
once: 1.4.0
- dependencies:
- min-document: 2.19.0
- process: 0.11.10
-
@@ -23435,8 +23327,6 @@ snapshots:
-
@@ -24248,12 +24138,6 @@ snapshots:
- dependencies:
- '@babel/runtime': 7.27.1
- '@videojs/vhs-utils': 4.1.1
- global: 4.4.0
-
dependencies:
sourcemap-codec: 1.4.8
@@ -24742,10 +24626,6 @@ snapshots:
- dependencies:
- dom-walk: 0.1.2
-
@@ -24893,13 +24773,6 @@ snapshots:
- dependencies:
- '@babel/runtime': 7.27.1
- '@videojs/vhs-utils': 4.1.1
- '@xmldom/xmldom': 0.8.10
- global: 4.4.0
-
@@ -24926,11 +24799,6 @@ snapshots:
- dependencies:
- '@babel/runtime': 7.27.1
- global: 4.4.0
-
dependencies:
aws-ssl-profiles: 1.1.2
@@ -25763,10 +25631,6 @@ snapshots:
- dependencies:
- '@babel/runtime': 7.27.1
-
dependencies:
find-up: 4.1.0
@@ -28142,32 +28006,6 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.2
- dependencies:
- '@babel/runtime': 7.27.1
- '@videojs/http-streaming': 3.17.0([email protected])
- '@videojs/vhs-utils': 4.1.1
- '@videojs/xhr': 2.7.0
- aes-decrypter: 4.0.2
- global: 4.4.0
- m3u8-parser: 7.2.0
- mpd-parser: 1.3.1
- mux.js: 7.1.0
- videojs-contrib-quality-levels: 4.1.0([email protected])
- videojs-font: 4.2.0
- videojs-vtt.js: 0.15.5
-
- dependencies:
- global: 4.4.0
- video.js: 8.23.3
-
-
- dependencies:
- global: 4.4.0
-
dependencies:
'@babel/core': 7.27.1