CoworkCaptureSession
A recording in progress (cowork.capture.record).
Properties
Section titled “Properties”file: string;Workspace-relative path the recording lands at.
id: string;onAudio
Section titled “onAudio”onAudio: (cb) => () => void;Live audio (live: true): 16 kHz mono Int16 frames of 20 ms. Returns the unsubscribe.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cb |
(frame) => void |
Returns
Section titled “Returns”() => void
onStop
Section titled “onStop”onStop: (cb) => () => void;Called once when the recording ends — Stop on the pill, the system, or stop(). Returns the unsubscribe.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cb |
(result) => void |
Returns
Section titled “Returns”() => void
stop: () => Promise<CoworkCaptureResult>;Returns
Section titled “Returns”Promise<CoworkCaptureResult>