插播视频广告成为后贴片视频广告

时间:2014-12-01 07:28:57

标签: jwplayer ads ova

我正在使用此ova代码尝试插播视频广告:                                   '$ URI。'视频广告                                                     {
                    “广告”:                         {                             “控制”:{                                    “跳过广告”: {                                       “启用”:是的,                                       “showAfterSeconds”:15                                    }                               },

                        "servers": [
                               {
                                  "type": "OpenX",
                                  "apiAddress":  "http://ads.viva.co.id/ads/www/delivery/fc.php",
                                    "allowAdRepetition": true
                               }
                        ],
                        "schedule": [
                           "position": "mid-roll",
                           "startTime": "00:00:10",
                           "zone": "349",
                           "playOnce": false,
                           "notice": {
                           "show": false
                        ]},
                    "debug": {
                          "debugger": "firebug",
                          "levels": "fatal, config, vast_template, vpaid, http_calls"
                    }

                }
           </ova.json>
        </config> 

但是插播广告成为后贴片广告,它在主要视频播放后显示,我该如何解决这个问题?

2 个答案:

答案 0 :(得分:-1)

再次,这是我的ova代码

<config>
   <ova.title>
   Video Ads
    </ova.title>    
    <ova.json>
       {    
        "ads": 
            {
            "controls": {
                       "skipAd": {
                      "enabled": true,
                      "showAfterSeconds": 15
                       }
              },

            "servers": [
                       {
                        "type": "OpenX",
                        "apiAddress":  "http://ads.../ads/www/delivery/fc.php",
                        "allowAdRepetition": true
                       }
                    ],
            "schedule": [
                       "position": "mid-roll",
                       "startTime": "00:00:10",
                        "zone": "349",
                       "playOnce": false,
                       "notice": {
                       "show": false
                        ]},
            "debug": {
          "debugger": "firebug",
                      "levels": "fatal, config, vast_template, vpaid, http_calls"
                    }

                }
</ova.json>
</config>

答案 1 :(得分:-1)

这是我的jwplayer代码:

<script type="text/javascript" src="<?php echo kone_url('appaux-js', 'swfobject-5.8.js');?>"></script>
<div id="video_iims2014" style="margin: 0px auto; padding-top: 3px; overflow: hidden;">
</div> 
<script type='text/javascript' src="<?php echo kone_url('appaux-js', 'jwplayer-5.10.js');?>"></script>
  <script type='text/javascript'>
  jwplayer("video_iims2014").setup({
          'id': 'playerID',
          'width': '663',
          'height': '390',
          'controlbar.position': 'bottom',    
          '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': "<?php echo 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': "<?php echo kone_url('media-videos').$videos[0]['path'];?>",
                            }
                        },
                        {type: 'download' }
                    ]
                });
            </script>