Online Editor Kaltura Plugin

Kaltura Plugin for Online Editor

Only for 2.3.5 and previous releases
If you currently use LAMS 2.4+, you won't need to download the plugin as it's already added after the 2.4 release
Table of Contents

The Kaltura Plugin allows you to upload a videos and stream from a webcam.

Pre-requisites

You will need to have an account on a Kaltura server. This can be either your own server (in order to set it up, please, refer to the guide on how to set up Kaltura CE Server) or account on Kaltura.com.

Download the Kaltura FCKEditor plugin for LAMS from the LAMS Downloads (See LAMS Addons)

Installation

Only for 2.3.5 and previous releases
If you currently use LAMS 2.4+, you won't need to download the plugin as it's already added after the 2.4 release

This is the stuff you need to do in your LAMS server.

Download the Editor Kaltura Plugin from the LAMS Downloads (See LAMS Addons)

As this is a plugin for the Editor, you will need unzip the Kaltura editor plugin in the following folder:

In Windows:

X:\whereever-you-installed-lams-directory\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\fckeditor\editor\plugins

Note that X: is the drive directory and of course "whereever-you-installed-lams-directory" is the whereever you installed LAMS directory Please change them accordingly.

In Unix/Linux:

/whereever-you-installed-lams-directory/jboss-4.0.2/server/default/deploy/lams.ear/lams-central.war/fckeditor/editor/plugins

After you unzipped the file, there are two files you would need to modify.

1. kaltura.jsp located at

/whereever-you-installed-lams-directory/jboss-4.0.2/server/default/deploy/lams.ear/lams-central.war/fckeditor/editor/plugins/kaltura/kaltura.jsp 

Here you should specify parameters specific for your actual Kaltura account.

  • KALTURA_SERVER - kaltura server you're going to use;
  • PARTNER_ID - your actual partner id
    To find it out log in to Kaltura Management Console(KMC) --> Settings tab --> Integration Settings, get the Partner ID parameter;
  • SUB_PARTNER_ID - your actual subparner id
    KMC --> Settings tab --> Integration Settings, get the Sub Partner ID parameter;
  • USER_SECRET - your actual user secret
    KMC --> Settings tab --> Integration Settings, get the User Secret parameter
  • KCW_UI_CONF_ID - ui_conf_id of Kaltura Contribution Wizard(KCW);
    KMC --> Content tab --> Upload --> Upload, using FireBug find its data parameter. It will be smth similar to http://kaltura/kcw/ui_conf_id/4421518 and just grab that last number.
    (However, in case you use kaltura.com account you should use 1000741 as KCW_UI_CONF_ID)
  • KDP_UI_CONF_ID - ui_conf_id of Kaltura Dynamic Player(KDP);
    KMC --> Studio tab --> Find player with no share button and grab its ID

BTW the file already contains default values, but they are correct only for fresh install of Kaltura CE version 4.0.

2. fckconfig_custom.js
If you are in Windows, look for this file and open it with Notepad:

X:\...\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\includes\javascript\fckconfig_custom.js 

This file should look like similar to this:

FCKConfig.ToolbarSets["Default"] = [
        ['Source','-','FitWindow', 'Preview','PasteWord','Undo','Redo','Bold','Italic','Underline', '-','Subscript','Superscript','OrderedList','Un
orderedList','-','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','TextColor','BGColor'], 
        ['Image','Link','Table','Rule','Smiley','SpecialChar','Templates','FontFormat','FontName','FontSize','About']
] ;

FCKConfig.ToolbarSets["Default-Learner"] = [
        ['Preview','PasteWord'],
        ['Undo','Redo'],
        ['Bold','Italic','Underline', '-','Subscript','Superscript'],
        ['OrderedList','UnorderedList','-','Outdent','Indent'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
        ['About'],
        ['TextColor','BGColor'],
        ['Table','Rule','Smiley','SpecialChar'],
        ['FontFormat','FontName','FontSize']
] ;

FCKConfig.ToolbarSets["Custom-Wiki"] = [
        ['Preview','PasteWord'],
        ['Undo','Redo'],
        ['Bold','Italic','Underline', '-','Subscript','Superscript'],
        ['OrderedList','UnorderedList','-','Outdent','Indent'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
        ['WikiLink','Link','Image'],
        ['About'],
        ['TextColor','BGColor'],
        ['Table','Rule','Smiley','SpecialChar'],
        ['FontFormat','FontName','FontSize']
] ;

FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../../css/defaultHTML_learner.css' ;
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;
FCKConfig.FirefoxSpellChecker = true;
FCKConfig.BrowserContextMenuOnCtrl = true;
FCKConfig.DefaultLinkTarget = "_blank";
FCKConfig.TemplatesXmlPath = FCKConfig.BasePath + '../../www/htmltemplates.xml';
FCKConfig.FontFormats   = 'div;h1;h2;h3;h4;h5;h6;pre;address;p' ;
FCKConfig.EnterMode = 'div' ;
FCKConfig.Plugins.Add('wikilink', 'en', FCKConfig.BasePath + '../../tool/lawiki10/');

I know, it looks like Chinese to me too But don't panic, Let's look at it one by one.

First part:

FCKConfig.ToolbarSets["Default"] = [
        ['Source','-','FitWindow', 'Preview','PasteWord','Undo','Redo','Bold','Italic','Underline', '-','Subscript','Superscript','OrderedList','Un
orderedList','-','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','TextColor','BGColor'], 
        ['Image','Link','Table','Rule','Smiley','SpecialChar','Templates','FontFormat','FontName','FontSize','About']
] ;
...

This part is the list and order of Tool sets that are displayed when the Editor is presented, so this results in this in the Editor

As you can probably figure out by now, the "Source" button in the picture, corresponds to the first 'Source' button in the code... and so on and so on. Therefore what we need to do to add the Kaltura button is to include it in the list code. As follows:

FCKConfig.ToolbarSets["Default"] = [
        ['Source','-','FitWindow', 'Preview','PasteWord','Undo','Redo','Bold','Italic','Underline', '-','Subscript','Superscript','OrderedList','Un
orderedList','-','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','TextColor','BGColor'], 
        ['Kaltura','Image','Link','Table','Rule','Smiley','SpecialChar','Templates','FontFormat','FontName','FontSize','About']
] ;
...

As you can see, I have put it before the 'Image' button in the menu.

Second part:

Now that we have included in the menu, we need to add just one more line at the bottom of the document:

...
FCKConfig.TemplatesXmlPath = FCKConfig.BasePath + '../../www/htmltemplates.xml';
FCKConfig.FontFormats   = 'div;h1;h2;h3;h4;h5;h6;pre;address;p' ;
FCKConfig.EnterMode = 'div' ;
FCKConfig.Plugins.Add('wikilink', 'en', FCKConfig.BasePath + '../../tool/lawiki10/');
FCKConfig.Plugins.Add('kaltura', 'en');

See, I have added this last line:

FCKConfig.Plugins.Add('kaltura', 'en');

And that's it

h4 How to use it

Login into LAMS and in any Editor you should see a Kaltura button

Help and Troubleshooting

Any questions, ask in the technical forums in the LAMS Community


Labels

v2_4 v2_4 Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.