Kaltura exception. Used update content

3 replies [Last post]
Joined: 11/21/2011
Points: 20

Добрый день. Такая проблема. При вызове метода updateContent() получаю exception.

Error:
Action "updateContent" does not exists for service "media"

Sample code:
$startTime = 100;
$endTime = 3000;
$clipDuration = $endTime - $startTime;

// Create New Clip
$operation1 = new KalturaClipAttributes();
$operation1->offset = $startTime;
$operation1->duration = $clipDuration;

// Add New Resource
$resource = new KalturaOperationResource();
$resource->resource = new KalturaEntryResource();
$resource->resource->entryId = $entryId;
$resource->operationAttributes = array($operation1);

$client->media->updateContent($entryId, $resource);

Joined: 11/21/2011
Points: 20

Good afternoon. Such a problem. When you call updateContent () get the exception.

Error:
Action "updateContent" does not exists for service "media"

Sample code:
$startTime = 100;
$endTime = 3000;
$clipDuration = $endTime - $startTime;

// Create New Clip
$operation1 = new KalturaClipAttributes();
$operation1->offset = $startTime;
$operation1->duration = $clipDuration;

// Add New Resource
$resource = new KalturaOperationResource();
$resource->resource = new KalturaEntryResource();
$resource->resource->entryId = $entryId;
$resource->operationAttributes = array($operation1);

$client->media->updateContent($entryId, $resource);

Joined: 01/05/2009
Points: 1697

Seems like you're using a client library with the wrong server version.
you should always download the client library from the server you work on (myserver/api_v3/testme/client-libs.php)

Joined: 11/21/2011
Points: 20

I use:
Kaltura server: 3.0.0
PHP: 5.3.5-1ubuntu7.4
API: 3.1.4 for PHP5