MCPcopy Create free account
hub / github.com/dgreif/ring / recordToFile

Method recordToFile

packages/ring-client-api/ring-camera.ts:664–670  ·  view source on GitHub ↗
(outputPath: string, duration = 30)

Source from the content-addressed store, hash-verified

662 }
663
664 async recordToFile(outputPath: string, duration = 30) {
665 const liveCall = await this.streamVideo({
666 output: ['-t', duration.toString(), outputPath],
667 })
668
669 await firstValueFrom(liveCall.onCallEnded)
670 }
671
672 async streamVideo(ffmpegOptions: FfmpegOptions) {
673 const liveCall = await this.startLiveCall()

Callers 1

exampleFunction · 0.80

Calls 2

streamVideoMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected