<?php
if (count($argv)<5){
echo 'Usage:' .__FILE__ .' <service_url> <partnerid> <admin_secret> <entry_id to clip>'."\n";
exit (1);
}
function clipi($client,$entry_id,$overwrite)
{
try{
// Params
$overwrite=false; //Decides whether to trim the entry or clip it
// Entry Data
$startTime = 100; //Set the start time of the clip / trim in milliseconds
$endTime = 5000; //Set the end time of the clip / trim in milliseconds
$clipDuration = $endTime - $startTime;
// Create New Clip
$operation1 = new KalturaClipAttributes();
$operation1->offset = $startTime;
This file has been truncated. show original