Example of uploading media. Part II

2 replies [Last post]
Joined: 07/10/2009
Points: 11

Hello,

I solved Kaltura session problem:

$config = new KalturaConfiguration(KALTURA_PARTNER_ID);
$client = new KalturaClient($config);
$ks = $client->session->start(KALTURA_PARTNER_WEB_SERVICE_SECRET, $partnerUserID, KalturaSessionType::ADMIN);
$client->setKs($ks);
$result = $client->media->upload('video.avi');

Now media->upload action return a name, but I don't see the video in Kaltura CE Server. What is the next action/funtion?

Thanks

Joined: 04/05/2009
Points: 354

Probably best if you try and keep the discussion to the one forum thread...

What does $result return? Is the upload successful? If so, what's the entry ID?

If you know the entry ID, can you get information on it via the TestMe console?

Have you checked your Kaltura CE logs to see if there was a problem transcoding the media?

Joined: 05/06/2009
Points: 29

hey veo

when you use the upload call it should return a filename, usually a random string of letters with an flv extension. This is called a "file upload token". if you call the addFromUploadedFile api function with this file upload token as an argument it should return an entryID and add the file to the server