This endpoint allows developers or users to create a new video or audio media in FastPix using a publicly accessible URL. FastPix fetches the media from the provided URL, processes it, and stores it on the platform for use.
Public URL requirement:
The provided URL must be publicly accessible and must point to a video stored in one of the following supported formats: .m4v, .ogv, .mpeg, .mov, .3gp, .f4v, .rm, .ts, .wtv, .avi, .mp4, .wmv, .webm, .mts, .vob, .mxf, asf, m2ts
Supported storage types:
The URL can originate from various cloud storage services or content delivery networks (CDNs) such as:
-
Amazon S3: URLs from Amazon's Simple Storage Service.
-
Google Cloud Storage: URLs from Google Cloud's storage solution.
-
Azure Blob Storage: URLs from Microsoft's Azure storage.
-
Public CDNs: URLs from public content delivery networks that host video files.
Upon successful creation, the API returns an id that must be retained for future operations related to this media.
How it works
-
Send a POST request to this endpoint with the media URL (typically a video or audio file) and optional media settings.
-
FastPix uploads the video from the provided URL to its storage.
-
Receive a response containing the unique id for the newly created media item.
-
Use the id in subsequent API calls, such as checking the status of the media with the Get Media by ID endpoint to determine when the media is ready for playback.
FastPix uses webhooks to tell your application about things that happen in the background, outside of the API regular request flow. For instance, after the media file is created (but not yet processed or encoded), FastPix sends a POST request to your specified webhook URL with the event video.media.created.
After processing completes, monitor the events video.media.ready and video.media.failed to track the status of the media file.
Related guide: Upload videos from URL