Page tree
Skip to end of metadata
Go to start of metadata

Parameters

Name

Type

Value

Required

item_idInteger
Yes
startString(00:00:00 format)
Yes
endString(00:00:00 format)
Yes
typeStringnew | existingYes
titleString
No

Title parameter can only be used if type is 'new'.


Warning! The video will be trimmed on I-frames and the length may slightly differ from specified.

Example

$data = array('object' => 'media', 'action' => 'trim',
    'parameters' => array(
        "item_id" => 197308,
        "start" => "00:01:00",
        "end" => "00:02:00",
        "type" => "new",
        "title" => "API Trim"
    )
);

Response

Response FieldsTypeSample ValueComment
statusCode
Integer00 - Success
statusMessage
String"Created trimming for media and created new media asset"Error or confirmation message
data
Array
Array of response data

idInteger203505id of the newly created media OR the media that was trimmed(If type is existing)
  • No labels