Copyright © 2008 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
famfamfam
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
Possibly http://www.kaltura.org/cdn-setup#comment-1568 ?