(params: {
videoPath: string;
maxSize: number;
exportQuality?: RecordingExportQuality;
targetLabel?: string;
})
| 149 | } |
| 150 | |
| 151 | export async function resizeRecording(params: { |
| 152 | videoPath: string; |
| 153 | maxSize: number; |
| 154 | exportQuality?: RecordingExportQuality; |
| 155 | targetLabel?: string; |
| 156 | }): Promise<void> { |
| 157 | const { |
| 158 | videoPath, |
| 159 | maxSize, |
| 160 | exportQuality = DEFAULT_RECORDING_EXPORT_QUALITY, |
| 161 | targetLabel = 'recording', |
| 162 | } = params; |
| 163 | await exportProcessedVideo({ |
| 164 | videoPath, |
| 165 | scriptPath: getResizeScriptPath(), |
| 166 | scriptArgs: ['--max-size', String(maxSize), '--quality', exportQuality], |
| 167 | commandDescription: `Failed to resize the ${targetLabel}`, |
| 168 | }); |
| 169 | } |
no test coverage detected