Single File Upload without KSU Widget (flash 10.1 Issue)

1 reply [Last post]
Joined: 09/30/2009
Points: 14

As many of you have probably discovered flash 10.1 has made the KSU not work.

We are working a pure PHP/HTML uploader solution.

We have managed to videos to upload but they are not be transcoded and propagated to the CDN.

Here is the code we have so far (I have only included the relevant API 3 code):

define("KALTURA_PARTNER_ID", $config['kaltura']['partner_id']);
define("KALTURA_PARTNER_WEB_SERVICE_SECRET", $config['kaltura']['user_secret']);
define("SUB_KALTURA_PARTNER_ID", $config['kaltura']['sub_partner_id']);

$Kcon = new KalturaConfiguration(KALTURA_PARTNER_ID);
$client = new KalturaClient($Kcon);
$ks = $client->session->start(KALTURA_PARTNER_WEB_SERVICE_SECRET, $partnerUserID, KalturaSessionType::USER);
$client->setKs($ks);
$file = $_FILES['video']['tmp_name'].$ext;
$result = $client->media->upload($file);
$mediaEnty = new KalturaMediaEntry;
$mediaEnty->mediaType = 1;
$mediaEnty->groupId = $config['level'];
$mediaEnty->partnerData = $client_video_id;
$mediaEnty->moderationStatus = 2;

$me = $client->media->addFromUploadedFile($mediaEnty,$result);

Can anyone see what is missing to get the video transcoded and propagated to the CDN?

Thanks

GG

Joined: 06/29/2009
Points: 65