Integrating the Kaltura ClipApp
Author: Carise Fernandez
The Kaltura ClipApp provides a simple timeline editor so you can clip and trim Kaltura entries. It consists of 2 parts:
- a Flash object that interacts with the KDP (the clipper)
This howto will walk you through what the code is doing in the PHP. It can also be applied for other integrations (e.g. Java, which I did), which is why the steps are a little tedious.
I am using the default uiConfIds for both the KDP and clipper. I don't know if there is a need to configure a custom uiConfId for the clipper, and I think I ran into a few glitches when using my own uiConfId for the KDP. The original demo code also uses these uiConfIds.
Retrieve the KalturaMediaEntry data. The code in init.php already sets up the session and retrieves the KalturaMediaEntry for you.
Look in your config.php (or similar) and fill in the configuration variables like your partnerId, adminSecret, etc.
"config": "<?php echo htmlspecialchars($_GET['config']);?>",
"host": "<?php echo $conf['host'];?>",
"partner_id": "<?php echo $conf['partner_id'];?>",
"entry": <?php echo json_encode($entry);?>,
"ks": "<?php echo $ks;?>",
"kdp_uiconf_id": <?php echo $conf['kdp_uiconf_id']; ?>,
"kclip_uiconf_id": <?php echo $conf['clipper_uiconf_id']; ?>,
"redirect_save": <?php echo ($conf['redirect_save']) ? 'true' : 'false'; ?>,
"redirect_url": "<?php echo $conf['redirect_url']; ?>",
"overwrite_entry": <?php echo ($conf['overwrite_entry']) ? 'true' : 'false'; ?>
Configure your clipApp.js to point to your backend API. By default, it is hardcoded to save.php.
If you have any questions, please feel free to ask questions on the Kaltura community forum.