From 0d0f220e07af14337a57d663bbcaf0e6298b13fe Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:47:36 +0100 Subject: [PATCH] disable native download button --- src/components/Recorder.tsx | 1 + src/components/VideoUploadModal.tsx | 1 + src/pages/share/[videoId].tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/src/components/Recorder.tsx b/src/components/Recorder.tsx index fcfefdc..f4b2a53 100644 --- a/src/components/Recorder.tsx +++ b/src/components/Recorder.tsx @@ -397,6 +397,7 @@ export default function Recorder({ closeModal, step, setStep }: Props) { onPause={() => posthog?.capture("recorder: paused preview video")} ref={videoRef} className="mb-4 max-h-[75vh] w-[75vw]" + controlsList="nodownload" /> ) : null}
diff --git a/src/components/VideoUploadModal.tsx b/src/components/VideoUploadModal.tsx index 0eb81ef..f6da51a 100644 --- a/src/components/VideoUploadModal.tsx +++ b/src/components/VideoUploadModal.tsx @@ -94,6 +94,7 @@ export default function VideoUploadModal() { controls ref={videoRef} className="max-h-[0px] max-w-[15px]" + controlsList="nodownload" /> ) : null} {file ? ( diff --git a/src/pages/share/[videoId].tsx b/src/pages/share/[videoId].tsx index 14cb87d..237019f 100644 --- a/src/pages/share/[videoId].tsx +++ b/src/pages/share/[videoId].tsx @@ -160,6 +160,7 @@ const VideoList: NextPage = () => { }) } className="h-full w-full" + controlsList="nodownload" > Your browser does not support the video tag.