Copyright © 2012 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.
EduVideo.org
Hi all,
I integrated KCW succesfully in my page using the default values.
I'm trying to modify the look and feel, (disable flickr, sound...)
I'm following this tutorial http://knowledge.kaltura.com/kaltura-contribution-wizard-kcw-customizati... but I'm wondering what should I change in order to make a custom XML, where should I upload it??.
I'm NOT using the Kaltura Community Edition.
Maybe this is the key: http://www.kaltura.com/kcw/ui_conf_id/1000741 ?
This is my code:
try
{
$ks = $client->session->start(KALTURA_PARTNER_SERVICE_SECRET, $partnerUserID, KalturaSessionType::USER);
//Prepare variables to be passed to embedded flash object.
$flashVars = array();
$flashVars["uid"] = $partnerUserID;
$flashVars["partnerId"] = KALTURA_PARTNER_ID;
$flashVars["ks"] = $ks;
$flashVars["afterAddEntry"] = "onContributionWizardAfterAddEntry";
$flashVars["close"] = "onContributionWizardClose";
$flashVars["showCloseButton"] = false;
$flashVars["Permissions"] = 1;
?>
<div id="kcw"></div>
<script type="text/javascript">
var params = {
allowScriptAccess: "always",
allowNetworking: "all",
wmode: "opaque"
};
// php to js
var flashVars = <?php echo json_encode($flashVars); ?>;
swfobject.embedSWF("http://www.kaltura.com/kcw/ui_conf_id/1000741 ", "kcw", "680", "360", "9.0.0", "expressInstall.swf", flashVars, params);
</script>
<!--implement callback scripts-->
<script type="text/javascript">
function onContributionWizardAfterAddEntry(entries) {
/* for(var i = 0; i < entries.length; i++) {
alert("entries["+i+"]:EntryID = " + entries[i].entryId);
}
*/
var url = "option=com_xxx&controller=content&task=content.syncContent&format=raw&tmpl=component&partnerId=<?php echo $partnerId;?>";
$.ajax({
type: "GET",
url: "index.php",
data: url,
cache: false,
beforeSend: function(){
$('div#ajaxLoader div#spin').fadeIn();
},
success: function(data){
$('div#ajaxLoader div#spin').fadeOut();
}
});
}
</script>
<script type="text/javascript">
function onContributionWizardClose() {
//alert("Thank you for using Kaltura ontribution Wizard");
}
</script>
thanks in advance
Hi,
As the document explains, if you want to create your own xml (uiconf) for the KCW, you need to upload it to the kaltura server via the uiconf service (with add method)