(selected)
| 395 | } |
| 396 | |
| 397 | async 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 | |
| 430 | async function validateProject(projectPath) { |
| 431 | const result = await runCommand( |
no test coverage detected