Skip to content

Latest commit

 

History

History
127 lines (87 loc) · 3.67 KB

README.md

File metadata and controls

127 lines (87 loc) · 3.67 KB

PlayKit JS IMA - IMA Plugin for the Kaltura Player JS

Build Status code style: prettier

PlayKit JS IMA plugin integrates IMA SDK for HTML5 with the Kaltura Player JS.

PlayKit JS IMA is written in ECMAScript6, statically analysed using Flow and transpiled in ECMAScript5 using Babel.

Getting Started

Prerequisites

The plugin requires Kaltura Player JS to be loaded first.

The plugin uses the IMA SDK for HTML5 Javascript SDK, if the SDK is already loaded on the page the plugin will use it, and if it's not then it will load it.

Installing

First, clone and run yarn to install dependencies:

git clone https://github.com/kaltura/playkit-js-ima.git
cd playkit-js-ima
yarn install

Building

Then, build the player

yarn run build

Embed the library in your test page

Finally, add the bundle as a script tag in your page, and initialize the player

<script type="text/javascript" src="/PATH/TO/FILE/kaltura-{ovp/ott}-player.js"></script>