Using LTAS with Flowplayer
Example with SWFObject 1.5
<script src="/js/swfobject-1.5.js"></script>
<div id="playerDiv"></div>
<script language="JavaScript">
var s1 = new SWFObject('flowplayer-3.1.4.swf','player','500','320','9','#ffffff');
s1.addParam('allowscriptaccess','always');
s1.addParam('allowfullscreen','true');
s1.addParam('wmode','transparent');
s1.addVariable('config', "{ "playlist": [ { "url":"video.flv", "autoPlay":false } ], "plugins":{ "ltas":{ "url":"flowplayer.ltas.swf", "enablejsads":true, "debugmode":true, "channelcode":"yourchannelhere" } }, "playerId":"player" }");
s1.write('playerDiv');
</script>
Example with SWFObject 2.x
<script src="/js/swfobject-2.1.js"></script>
<script language="JavaScript">
var params = {
"allowscriptaccess":"always",
"allowfullscreen":"true",
"wmode":"transparent"
};
var flashvars = {
config:"{'playlist':[{'url':'video.flv','autoPlay':false}],'plugins':{'ltas':{'url':'flowplayer.ltas.swf','enablejsads':true,'debugmode':true,'channelcode':'yourchannelcode'}},'playerId':'playerObj'}"
};
var attributes = {
"id":"playerObj",
"name":"playerObj"
};
swfobject.embedSWF("flowplayer-3.1.4.swf", "playerDiv", "500", "320", "9.0.0", null, flashvars, params, attributes);
</script>
<div class="ltas-ad">
<div id="playerDiv"></div>