Method
media.import
Probes a file and adds it to the project's bin. What dropping a file on the window does.
{
"method": "media.import",
"path": "/edits/Reel",
"file": "/footage/take1.mp4"
}Reply: an EditorView. createdId is the new media id (m1, m2, …).
Good to know:
- A path already in the bin is a no-op, and
createdIdis absent. - This is
media.probe+ theaddMediacommand, as one request. - The bin item's fields are in Types → MediaItem.