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

Function resolveNodeAssetUrl

packages/core/scripts/debug-timeline.ts:177–187  ·  view source on GitHub ↗
(tag: ParsedTag)

Source from the content-addressed store, hash-verified

175}
176
177function resolveNodeAssetUrl(tag: ParsedTag): string | null {
178 const attrs = tag.attrs;
179 return (
180 attrs.src ??
181 attrs["data-src"] ??
182 attrs["data-asset-src"] ??
183 attrs["data-video-src"] ??
184 attrs["data-image-src"] ??
185 null
186 );
187}
188
189function resolveRootTag(tags: ParsedTag[]): ParsedTag | null {
190 const explicitRoot = tags.find((tag) => tag.attrs["data-composition-id"] === "master");

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected