MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveMediaPath

Function resolveMediaPath

apps/sim/lib/pptx-renderer/utils/media.ts:40–43  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

38 * Media paths in PptxFiles are like "ppt/media/image1.png".
39 */
40export function resolveMediaPath(target: string): string {
41 const fileName = target.split('/').pop() || ''
42 return `ppt/media/${fileName}`
43}
44
45/**
46 * Get or create a blob URL for a media file, using a cache to avoid duplicates.

Callers 6

resolveShapeBlipUrlFunction · 0.90
renderImageFunction · 0.90
renderVideoFunction · 0.90
renderAudioFunction · 0.90
resolveMediaUrlFunction · 0.90
renderBlipBackgroundFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected