Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(web): remove unused comment recorder media constraints
Richie McIlroy9778c21d2237
diff --git a/apps/web/app/s/[videoId]/_components/timeline/recording/recorder-constraints.ts b/apps/web/app/s/[videoId]/_components/timeline/recording/recorder-constraints.tsindex 5a63486ed..8303263c7 100644--- a/apps/web/app/s/[videoId]/_components/timeline/recording/recorder-constraints.ts+++ b/apps/web/app/s/[videoId]/_components/timeline/recording/recorder-constraints.ts@@ -1,24 +1,3 @@-export const MIC_CONSTRAINTS: MediaTrackConstraints = {- echoCancellation: true,- noiseSuppression: true,- autoGainControl: true,-};--export const CAMERA_CONSTRAINTS: MediaTrackConstraints = {- width: { ideal: 1280 },- height: { ideal: 720 },- frameRate: { ideal: 30 },-};--export const DISPLAY_CONSTRAINTS: MediaStreamConstraints & {- systemAudio?: string;-} = {- video: { height: { ideal: 720 }, frameRate: { ideal: 30 } },- audio: true,- // Chromium hint; ignored elsewhere.- systemAudio: "include",-};-const pickSupported = (candidates: string[]) => {if (typeof MediaRecorder === "undefined") return null;for (const candidate of candidates) {@@ -34,7 +13,9 @@ const pickSupported = (candidates: string[]) => {/*** Prefer AAC-in-mp4 (plays everywhere including iOS) over opus-in-webm.* Chrome-recorded webm/opus gets a conversion pass before upload where the- * encoder exists; the true mime always travels in mediaMeta.+ * encoder exists; the true mime always travels in mediaMeta. Video comments+ * pick their mime through the engine's pipeline selector instead — audio-only+ * recording is the one capture the web recorder engine doesn't cover.*/export const pickVoiceMime = () =>pickSupported([@@ -43,18 +24,3 @@ export const pickVoiceMime = () =>"audio/webm;codecs=opus","audio/webm",]);--/**- * Prefer H.264 so the recording is mp4-ready without re-encoding; VP-in-webm- * is the fallback and goes through the WebCodecs conversion pass when- * supported (Firefox uploads raw webm — known iOS-viewer gap).- */-export const pickVideoMime = () =>- pickSupported([- "video/mp4;codecs=avc1.42E01F,mp4a.40.2",- "video/mp4",- "video/webm;codecs=h264,opus",- "video/webm;codecs=vp9,opus",- "video/webm;codecs=vp8,opus",- "video/webm",- ]);