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

Function getVideoValidatorExecutablePath

src/utils/video.ts:89–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89async function getVideoValidatorExecutablePath(): Promise<string> {
90 videoValidatorExecutablePathPromise ??= compileSwiftSourceText({
91 source: VIDEO_VALIDATION_SCRIPT,
92 cacheName: 'video-validator',
93 timeoutMs: 30_000,
94 });
95 try {
96 return await videoValidatorExecutablePathPromise;
97 } catch (error) {
98 videoValidatorExecutablePathPromise = undefined;
99 throw error;
100 }
101}
102
103function isSwiftVideoValidatorError(error: unknown): boolean {
104 if (!(error instanceof AppError)) {

Callers 1

isPlayableVideoFunction · 0.85

Calls 1

compileSwiftSourceTextFunction · 0.90

Tested by

no test coverage detected