MCPcopy Index your code
hub / github.com/callstack/agent-device / resizeRecording

Function resizeRecording

src/recording/overlay.ts:151–169  ·  view source on GitHub ↗
(params: {
  videoPath: string;
  maxSize: number;
  exportQuality?: RecordingExportQuality;
  targetLabel?: string;
})

Source from the content-addressed store, hash-verified

149}
150
151export 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}

Callers 1

overlay.test.tsFile · 0.90

Calls 2

exportProcessedVideoFunction · 0.85
getResizeScriptPathFunction · 0.85

Tested by

no test coverage detected