MCPcopy
hub / github.com/CapSoftware/Cap / recordCameraMic

Function recordCameraMic

scripts/verify-recording-pipeline.mjs:397–428  ·  view source on GitHub ↗
(selected)

Source from the content-addressed store, hash-verified

395}
396
397async function recordCameraMic(selected) {
398 const projectPath = path.join(runDir, "cli-screen-camera-mic.cap");
399 const args = [
400 "--log-level",
401 "debug",
402 "--json",
403 "record",
404 "start",
405 "--screen",
406 selected.screenId,
407 "--camera",
408 selected.cameraId,
409 "--mic",
410 selected.micName,
411 "--path",
412 projectPath,
413 "--duration",
414 String(recordingSeconds),
415 "--fps",
416 "30",
417 ];
418 if (includeSystemAudio) {
419 args.push("--system-audio");
420 }
421 await runCommand("cli-screen-camera-mic-record", capBin, args);
422 summary.flows.push({
423 name: "cli-screen-camera-mic",
424 projectPath,
425 systemAudio: includeSystemAudio,
426 });
427 return projectPath;
428}
429
430async function validateProject(projectPath) {
431 const result = await runCommand(

Callers 1

Calls 1

runCommandFunction · 0.85

Tested by

no test coverage detected