Getting Started with Kaltura HTML5
.org CDN Hosted Script Installation
Note: if your a kaltura customer you should use the embed code provided via the KMC.
Self Hosting the Library
You can download any given tag from github. From the release notes page you can see what is the most recent changes and tag. And follow the associated download link for example:
You will want to edit LocalSettings.php A good example of local settings is included in LocalSettings.php.sample You can copy that sample to the LocalSettings.php location in the root of the mwEmbed folder. If your setting up the library for onPrem or CE edition take a look at LocalSettings.KalturaPlatform.php which includes a local settings file that you can point at your CE or onPrem kaltura install to bootstrap the html5 library configuration.
In your local settings file sure your $wgKalturaServiceUrl is set:
$wgKalturaServiceUrl = 'http://url.to.your.kaltura.api.install';
Once you checkout the library assuming it located at some location like: http://example.com/mwEmbed, in your pages that you want to activate the html5 library script you should include:
MIT Licensed Static Player Installation
The MIT Licensed Kaltura HTML5 Media Player is a statically compiled library that you may freely distribute when all code must be hosted directly on the website and linking to the CDN hosted library is not possible.
Inserting HTML5 Media Elements onto a Web Page
<video controls poster="./media/sintel.jpg" width="720" height="306"> <source type="video/mp4" src="./media/sintel.mp4"> <source type="video/ogg" src="./media/sintel.ogg"> <track kind="subtitles" srclang="en" src="./media/sintel_en.srt"> <track kind="subtitles" srclang="ru" src="./media/sintel_ru.srt"> </video>