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

Function isSwiftVideoValidatorError

src/utils/video.ts:103–114  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

101}
102
103function isSwiftVideoValidatorError(error: unknown): boolean {
104 if (!(error instanceof AppError)) {
105 return false;
106 }
107 if (error.code === 'TOOL_MISSING') {
108 return true;
109 }
110 return isSwiftVideoValidatorUnavailable(
111 String(error.details?.stderr ?? ''),
112 String(error.details?.stdout ?? ''),
113 );
114}
115
116export async function waitForPlayableVideo(
117 filePath: string,

Callers 1

isPlayableVideoFunction · 0.85

Calls 1

Tested by

no test coverage detected