MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveMediaSrc

Function resolveMediaSrc

packages/core/src/compiler/htmlCompiler.ts:17–19  ·  view source on GitHub ↗
(src: string, projectDir: string)

Source from the content-addressed store, hash-verified

15export type MediaDurationProber = (src: string) => Promise<number>;
16
17function resolveMediaSrc(src: string, projectDir: string): string {
18 return src.startsWith("http://") || src.startsWith("https://") ? src : resolve(projectDir, src);
19}
20
21/**
22 * Compile HTML with full duration resolution.

Callers 1

compileHtmlFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected