v1
latestOpenAPI 3.1.02026-07-24251250397.8 KBmedia
Create a clip from a `renditions` VOD media
Creates a new renditions (CMAF VOD) media by clipping an existing renditions VOD source. Clip in/out points are optional; if omitted, the full source media is captured. The new media inherits DRM settings from the source unless overridden in metadata. The DRM setting on the new media can also be updated at any time using the update media endpoint.
put/v2/sites/{site_id}/media/{media_id}/clip/
Path parameters
site_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the site
media_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the media
Request body
Example request
{
"clip_in_point": "00:01:30.500",
"clip_out_point": "00:05:00.000",
"metadata": {
"title": "My Media Title",
"description": "My media description",
"author": "Jane Doe",
"permalink": "http://www.mysite.com",
"category": "Automotive",
"publish_start_date": "2018-10-03T21:19:36.602019+00:00",
"publish_end_date": "2018-10-03T21:19:36.602019+00:00",
"tags": [
"test1",
"happy1",
"one",
"two",
"four"
],
"custom_params": {
"param1": "value1"
}
}
}Response
Clipped media successfully created
Example response
{
"schema": "https://schema.jwplayer.com/types/thumbnail.json",
"id": "Ny05CEfj",
"created": "2019-09-25T15:29:11.042095+00:00",
"last_modified": "2019-09-25T15:29:11.042095+00:00",
"relationships": {
"protection_rule": {
"id": "Ny05CEfj"
}
},
"metadata": {
"title": "My Media Title",
"description": "My media description",
"author": "Jane Doe",
"permalink": "http://www.mysite.com",
"category": "Automotive",
"publish_start_date": "2018-10-03T21:19:36.602019+00:00",
"publish_end_date": "2018-10-03T21:19:36.602019+00:00",
"tags": [
"test1",
"happy1",
"one",
"two",
"four"
],
"custom_params": {
"param1": "value1"
}
},
"status": "ready",
"media_type": "video",
"hosting_type": "hosted",
"error_message": "Something went wrong!",
"external_id": "myvideo123",
"duration": 437,
"trim_in_point": "00:00:01",
"trim_out_point": "00:01:00.123"
}