Flowplayer的openx广告插件

flowplayer上使用openx广告的方法:

$f("openx", "http://static.flowplayer.org/swf/flowplayer-3.1.3.swf", {
plugins: {
openAdStreamer: {
"url": 'http://static.openvideoads.org/downloads/flowplayer.org/OpenAdStreamer.swf',

/*
* Instruct the Open Ad Streamer to only play HTTP progressive streams and
* start playing immediately when the player is loaded.
*/
"deliveryType": "progressive",
"autoPlay" : true,

/*
* Define the shows to play - in this case we're going to play 30 seconds of
* a HTTP stream "the-black-hole.mp4"
*/
"shows": {
"streams": [
{
"file":"http://streaming.openvideoads.org/shows/the-black-hole.mp4",
"duration":"00:00:30"
}
]
},

/*
* Defines the region on the player that we wish to use to display the overlay ads
*/
"overlays": {
"regions": [
{
"id": "bottom",
"verticalAlign": "bottom",
"horizontalAlign": "center",
"backgroundColor": "#000000",
"padding": "-10 -10 -10 -10",
"width": 338,
"height": 38
}
]
},

/*
* Defines the ads to schedule against the show streams - we've specified a
* pre-roll and overlay ad
*/
"ads": {
"server": {
"type": "OpenX",
"vastURL": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
},

"schedule": [
{
"zone": "5",
"position": "pre-roll"
},
{
"zone": "45",
"startTime": "00:00:05",
"duration": "15",
"position": "bottom"
}
],
},

"debug": {
"levels": "fatal,vast_template",
"debugger": "firebug"
}
}
}
});
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值