Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): drop restating comments on captionsInitiallyOff props Remove the narrating doc comments Greptile flagged; the Share.tsx one explaining why stays.

ManthanNimodiyab33150e31c54
diff --git a/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
index cfafffdc5..64f24887d 100644
--- a/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
+++ b/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
@@ -100,7 +100,6 @@ interface Props {
chaptersSrc: string;
captionsSrc: string;
disableCaptions?: boolean;
- /** Server-resolved `?captions=off`; seeds the caption toggle instead of always starting on. */
captionsInitiallyOff?: boolean;
videoRef: React.RefObject<HTMLVideoElement | null>;
mediaPlayerClassName?: string;
diff --git a/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx
index d7fa6b36e..b3acd0863 100644
--- a/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx
+++ b/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx
@@ -99,7 +99,6 @@ interface Props {
videoRef: React.RefObject<HTMLVideoElement | null>;
mediaPlayerClassName?: string;
disableCaptions?: boolean;
- /** Server-resolved `?captions=off`; seeds the caption toggle instead of always starting on. */
captionsInitiallyOff?: boolean;
autoplay?: boolean;
hasActiveUpload?: boolean;
diff --git a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
index 9aff60293..5f6dd0ab8 100644
--- a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
+++ b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
@@ -84,7 +84,6 @@ export const ShareVideo = forwardRef<
chapters?: { title: string; start: number }[];
areChaptersDisabled?: boolean;
areCaptionsDisabled?: boolean;
- /** Server-resolved `?captions=off`; seeds the player's caption toggle. */
captionsInitiallyOff?: boolean;
areCommentStampsDisabled?: boolean;
areReactionStampsDisabled?: boolean;