(outputPath: string, duration = 30)
| 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() |
no test coverage detected