Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Tab recording muxing

Richie McIlroy54f7f92a650d
diff --git a/apps/web/app/record/Record.tsx b/apps/web/app/record/Record.tsx
index 3c1838258..9fb3a8bcb 100644
--- a/apps/web/app/record/Record.tsx
+++ b/apps/web/app/record/Record.tsx
@@ -232,9 +232,6 @@ export const Record = ({
const startScreenCapture = async () => {
try {
const displayMediaOptions = {
- video: {
- displaySurface: "window",
- },
audio: false,
surfaceSwitching: "exclude",
selfBrowserSurface: "exclude",
@@ -798,18 +795,23 @@ export const Record = ({
if (recordingIntervalRef.current) {
clearInterval(recordingIntervalRef.current);
recordingIntervalRef.current = "stop";
+ console.log("Recording interval stopped");
}
if (videoRecorder) {
videoRecorder.stop();
+ console.log("Video recorder stopped");
}
while (readyToStopRecording.current === false) {
await new Promise((resolve) => setTimeout(resolve, 1000));
+ console.log("Waiting for readyToStopRecording");
}
await muxQueue.waitForQueueEmpty();
+ console.log("All segments muxed");
+
const videoId = await getLatestVideoId();
console.log("---Opening link here---");