首先,抱歉我的英文, 这是我的第一篇文章,如果闪光灯关闭,播放视频前贴片广告会有问题,但如果闪光灯播放,前贴片广告发挥很大,我会搜索每个参考播放前贴片广告html5中的广告,但没有,这是我的代码:
<script type='text/javascript' src="<?=kone_url('appaux-js', 'jwplayer-5.10.js');?></script>
<script type='text/javascript'>
jwplayer("livestreaming").setup({
'id': 'playerID',
'width': '663',
'height': '390',
'stretching' : 'uniform',
'controlbar.position': 'bottom',
'autostart' : '0',
'plugins' : '<?php echo kone_url("appaux-swf", "ova-jw.swf")?>',
'config' : '<?php echo $config ?>',
'modes': [
{
type: 'flash',
src: '<?php echo kone_url("appaux-swf", "jwplayer-5.10.swf")?>',
config:{
'image' : "<?=thumbImage(array('path'=>$videos[0]['path_thumbnail'], 'width'=>'663', 'height'=>'382', 'type' => 'videos'));?>",
'file': "<?=kone_url('media-videos').$videos[0]['path'];?>",
}
},
{
type: 'html5',
config:{
'image' : "<?=thumbImage(array('path'=>$videos[0]['path_thumbnail'], 'width'=>'663', 'height'=>'382', 'type' => 'videos'));?>",
'file': "<?=kone_url('media-videos').$videos[0]['ipad_video_path'];?>",
}
},
{type: 'download' }
]
});
</script>
and this is script config :
<config>
<ova.title>
'.$uri.' Video Ads
</ova.title>
<ova.json>
{
"ads":
{
"controls": {
"skipAd": {
"enabled": true,
"showAfterSeconds": 15
}
},
"servers": [
{
"type": "OpenX",
"apiAddress": "$secret",
"allowAdRepetition": true
}
],
"schedule": [
'.$video_ads.$koma.$video_ads_overlay.']},
"debug": {
"debugger": "firebug",
"levels": "fatal, config, vast_template, vpaid, http_calls"
}
}
</ova.json>
</config>
我可以在html5中播放前贴片广告吗? 感谢您的关注