Clip and trim a VOD

Clip and trim a VOD
Create a new on-demand clip from an existing FastPix media by sending its mediaId with start and end times to the create-media API. The clip is a new asset with its own playback ID.
1. Description
Create a clip by sending a POST to https://api.fastpix.com/v1/on-demand. In the inputs array, reference the source video as fp_mediaId://{MEDIA_ID} and set startTime and endTime in seconds; omit them to clone the full source duration. FastPix transcodes the segment into a new on-demand asset with its own mediaId and playbackId. It cuts on the nearest keyframe, so the final duration can differ from the requested times by a few hundred milliseconds. See the Clip and trim videos guide at /video-on-demand/clip-and-trim-videos.
2. When to use
1{
2 "inputs": [
3 {
4 "type": "video",
5 "url": "fp_mediaId://{MEDIA_ID}",
6 "startTime": 0,
7 "endTime": 60
8 }
9 ],
10 "accessPolicy": "public"
11}