Import media from a direct link
livereacting_import_from_urlBring a file into the media library from a direct http or https link to a video, audio or image file on any public host, for example a CDN or storage bucket URL. The link must return the file itself, not a web page: the content type decides the media type, and it must match type. Links that point to a private or internal address are refused with URL_NOT_ALLOWED. The file must fit the plan's max file size; a video counts against the storage quota. Google Drive, Dropbox and YouTube links go to livereacting_import_media instead. The import runs in the background. This returns a fileId straight away; poll livereacting_get_import_status with it to find out when the file is ready. Only one import can run at a time per account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A direct http(s) link to the media file, for example https://cdn.example.com/intro.mp4. | |
| type | Yes | What kind of media this is. A video playlist layer can only use video files. | |
| folderId | No | Put the imported file in this folder. Omit to import to the root of the library. |