## Library Overview
[html5]: https://developer.mozilla.org/En/Using_audio_and_video_in_FireFox
[KDP3]: http://www.kaltura.org/project/Video_Player_Playlist_Widget
__Kaltura's HTML5 Media Library__ enables you to take advantage of the [html5 `` and `` tags][html5] today with a consistent player interface across all major browsers including Internet Explorer.
The library supports a seamless fallback with Flash based playback using [Kaltura's Flash player][KDP3] or Java Cortado for browsers that don't yet feature HTML5 video & audio support. Upon detection of the client browser, the __Kaltura HTML5 Media Library__ chooses the right codec to use (specified in the source attributes, or available from a Kaltura server) and the right player to display. So whether you're using flash, h264, ogg-theora, or WebM -- Kaltura's library will make sure it is played on all browsers with the same UI.
While support for HTML5 video is growing, there is large percentage of the web browser market that is presently best served by the Adobe Flash plugin and an associated player. A base component of the Kaltura HTML5 javascript library bridges this gap, by cascading to an underlining Flash player in browsers that do not support the native HTML5 video player. In addition, Kaltura's player maintains a unified look & feel across formats and browsers.
## Library Features
* Video Player
* Audio Player
* __Cross browser & Format compatibility__
* Will work on all major browsers, and with any online supported video format.
* Gracefully identifys the best playback engine (Native HTML5, Flash, VLC or Java Cortado) for your settings and video format.
* __Easy to skin__ see live demo ]
* Based on HTML, CSS and jQuery, skinning is amazingly easy and flexible. No need external or compiled resources (like Flash), or complicated development environments.
* Skin and Theme are consistent through all UI and playback engines. Built in support for for the jquery Theme Roller for easy theming.
* __Easy to Extend, Javascript modules__ - Quick, clean and easy way of extending. Write once and the code will be compatible with all browsers and all playback engines.
* __Javascript libraries for web applications__ that allow much more then simple playback. Create a full featured web-video experience i
* Import and upload wizard
* Video Editor
* Client Side Encoding (FireOgg)
* __Easy to integrate__ - Integrate to any existing web CMS, pre-integrated into Media Wiki (powering Wikipedia, MetaVid).
* __Kaltura's HTML5 Media Library__ is built on [jQuery](http://jquery.com/) and [jQueryUI](http://jqueryui.com/) so it's easy to theme, customize and extend.
* supports the royalty free, patent unencumbered open media formats [ogg theora/vorbis](http://xiph.org/).
* This enables websites to distribute video without [future content distribution costs](http://mpegla.com/news/n_03-11-17_avc.html) associated with the h.264 codec. With theora sporting [similar qualities](http://people.xiph.org/%7Egreg/video/ytcompare/comparison.html) at web bitrates its a win win to start adoption ogg!
* If your already distributing h.264 formats, __mwEmbed__ supports a smooth transition with fallback to h.264 sources with the same html/css interface player skin as the ogg content.
* supports emerging subtitles and timed text formats for future prof accessibility.
* includes an easy to integrate free license asset search system for grabbing free content from repositories such as the [Internet Archive](http://www.archive.org/index.php), [Wikimedia Commons](http://commons.wikimedia.org/wiki/Main_Page), and [Flickr](http://www.flickr.com/). This lets you integrate quick access to freely reusable illustrative image or short web clip for your web app.
* includes components for flexible client side transcoding of assets via the [Firefogg](http://firefogg.org/) browser extension. Firefogg integration lets video sites avoid intermediary transcode formats for user contributed media, distribute transcode costs, and lets the website provide specific transcoding settings directly to the client at the point of upload.
* Integrated into Kaltura Video Platform based on the Kaltura JS Client library
* Analytics Support
* Advertisement Support
## Basic Usage
## Using Kaltura SaaS for Video Transcoding
To use html5 video flavors from your Kaltura account, you need only to include a `kentryid` attribute in yout `` tag. The library will automatically select the appropriate video flavors for your visitors devices (make sure you have contacted support and requested that [html5 video flavors](#codecs) be added to your account)
## Hosting Your Own Video Transcodes
Using __Kaltura's HTML5 Media Library__ in your own applications is as simple as adding a script include of the library javascript, `http://html5.kaltura.org/js` and then using the normal html5 video tag, ie ``.
Putting it all together your embed page should look something like this:
* For best compatibility: we include the poster, durationHint, width and height attributes. This way browsers such as IE can display the player interface with poster image at the correct resolution with a duration in the user interface.
* If you would like to support html5 with h.264 ( safari, IE9, google chrome) and support a flash fallback for older versions of IE you include an h.264 source. For best compatibility your mp4 source should ideally use a h.264 profile compatible with mobile devices such as the iPhone. Kaltura hosted Solutions include iPhone support. Desktop video encoding software such as handbrake also includes iPhone profiles.
* If you would like to change the theme you can change the class attribute `` more info about custom theming is on the way.
## Advanced Examples
## MediaRSS Playlists
## Fall Forward from Flash to html5 for iOS and Android Support
__Kaltura's HTML5 Video Library__ may be installed in conjunction with existing flash video integrations to provide fall forward from flash to html5 to enable video embedding for iPhone and iPad.
Installing html5 support to an existing Kaltura integration is as simple as adding a javascript tag to include `http://html5.kaltura.org/js`. The library will automatically replace your Flash embed with an html5 `` element on browsers capable of parsing the tag.
Fall forward from Flash to html5
Fall forward from Flash to html5
## Themeing with jQuery-UI
You can add a custom jquery ui theme by using the theme wizard: [http://www.kaltura.org/apis/html5lib/kplayer-examples/Player_Themable.html](http://www.kaltura.org/apis/html5lib/kplayer-examples/Player_Themable.html). Note that although the themeroller only works in Firefox, the temes you create with it will work in multiple browsers.
## Skinning and Themeing
[Theme Wizard]: http://www.kaltura.org/apis/html5lib/kplayer-examples/Player_Themable.html
You can add a custom jquery ui theme by using the [Theme Wizard][]. Downloading that theme and adding a reference to jquery-ui-.custom.css after the mwEmbed-player-static.css file.
A few sample jquery ui skins are included in the skins/jquery.ui.themes folder of the [HTML5 Video Player][].
You can remove the kaltura attribution for the player by adding the following javascript:
You can remove the kaltura attribution for the player by adding the following javascript:
## Analytics
## Subtitles
## Basic Usage of MIT Licensed Static Compiled HTML5 Video Player
[HTML5 Media Library]: http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library
[HTML5 Video Player]: http://www.kaltura.org/project/HTML5_Video_Player
### Notes on Optimization
mwEmbed is designed to be used with a script-loader and this static package sacrifices transport size and packages in code every client won't use, in order to be a single static file. You can learn more about using mwEmbed with a script-loader on the project home page.
To use the load optimized [HTML5 Media Library][] replace your mwEmbed script include line of `` with:
For full un-minified source see [HTML5 Video Player][]
### Basic Usage
In the `` of your page you will need jQuery and the mwEmbed-player package: