Architecture overview
EMP HTML5 player is build on top of VideoJS 5.6.0 and Shaka player 2.0 libraries.
Using EMP Player
shaka-player.compiled.js and video.js should be added to your html file before emp-player.min.js:
<script src="shaka-player.compiled.js" type="text/javascript"></script>
<script src="video.js" type="text/javascript"></script>
<script src="emp-player.min.js" type="text/javascript"></script>You can then create a new player instance by calling empPlayer constructor with the following arguments:
- DOM video element ID
- Options object
- Callback function
demoPlayer = new empPlayer('player', options, function () { ... });Check out the player option page for additional information.
EMP Html5 Player