I want to use Kaltura's standalone HTML5 player with VAST / VPAID ad support modules, but I'm at a loss. I am not completely familiar with Kaltura architecture, and thought that I found a lot of details and discussions in the Kaltura support documentation and community forums, I was not lucky that it works. (Example: http://www.kaltura.org/ad-support-integration )
I installed the HTML5 player (kaltura-html5player-widget.1.6a_0.zip) in a local environment (running Apache and PHP on Linux) and I downloaded the AdSupport modules from GitHub ( https://github.com/kaltura/mwEmbed/tree/ master / modules / AdSupport ), but cannot figure out how to load AdSupport modules for use in the player.
Here is what I still have, but nothing is loading:
<head>
<title>Simple Video Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="../jquery-1.6.4.min.js" ></script>
<style type="text/css">
@import url("../skins/jquery.ui.themes/kaltura-dark/jquery-ui-1.7.2.css");
</style>
<style type="text/css">
@import url("../mwEmbed-player-static.css");
</style>
<script type="text/javascript" src="../mwEmbed-player-static.js" ></script>
<script>
mw.load("modules/AdSupport/resources/mw.AdLoader.js",function(){
mw.AdLoader.load( 'http://path/to/vast/ad.xml', function( adConf ){
mw.addAdToPlayerTimeline( embedPlayer, ['preroll', 'bumper','overlay', 'postroll'], adConf );
});
});
</script>
</head>
<body>
<h3>Simple video sample</h3>
<video id="vid1" width="480" height="300"
poster="http://www.iana.org/_img/2013.1/icann-logo.svg"
durationHint="33"
>
<source src="http://path/to/video.mp4" type="video/h264" />
</video>
</body>
source
share