?
getMediaMetadata
Get info about a media file
mindstudio.getMediaMetadata({ mediaUrl }) → Result
Reads a media file's technical details — dimensions, duration, codec — without downloading the whole file. Use it to branch on aspect ratio or length before processing.
Parameters
mediaUrl
string
RequiredURL of the audio or video file to analyze
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.getMediaMetadata({ mediaUrl: /* ... */ });