0

我正在为 Flash 和 html5 播放器使用 Jwplayer 6 广告版本,其中 Flash 播放器运行良好,并且前贴片广告即将推出,但 IOS/Android 设备支持显示前贴片广告的 Html5 播放器。

播放器配置支持链接http ://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/22644/using-the-html5-video-tag/

问题:在 html5 播放器中在各种 IOS/Andriod 设备上播放视频时,前贴片广告不出现。

<script src='/jwplayer/jwplayer.js'></script>
  <div id='vidShow' style='text-align:center'></div>
  <video height='388' width='658' id='vidShow' autoplay autobuffer controls>
  <source src='$videoURL' type='video/mp4'></video>

<script type='text/javascript'>
jwplayer.key='ZntNkhG6CqNXBkJnV4sYqVjYopC38oGcp0GjCQ==';
jwplayer('vidShow').setup({
  modes: [
  { type: 'html5' },
  { type: 'flash', src: '/jwplayer/jwplayer.flash.swf' },
    advertising: {
    client: 'vast',
    schedule: {
    myPreroll:
    {
    offset: 'pre',
    tag: 'http://xp1.zedo.com/jsc/c2/fns.vast?n=2135__amp__c=121/102__amp__d=22__amp__s=1__amp__v=vast2__amp__pu=__page-url____amp__ru=__referrer____amp__pw=__player-width____amp__ph=__player-height____amp__z=__random-number__'
    }}}]
  });
 </script>         
4

1 回答 1

0

使用... JW PLAYER v6.8+ (Working)

<div id="mediabox_video" style="width:100%; height:100%;">Loading...</div>

<script type="text/javascript">
    jwplayer("mediabox_video").setup({
        width: '100%',
        height: '100%',
        autostart: true,
        playlist: [{
            sources: [
                {bitrate: "360", file: "http://110.164.180.149/video39/1930daa7bced9bcbfb8131af6e8a34fb/5320014b/2014/03/11/1394544732/1394544732_360.mp4", label: "360p", type: "video/mp4", provider: "video"},
                {bitrate: "480", file: "http://110.164.180.149/video39/bf9b55c3f9c3b71291e3c09aff6ba4ae/5320014b/2014/03/11/1394544732/1394544732_480.mp4", label: "480p", type: "video/mp4", provider: "video"},
            ]
        }],
        advertising: {
            client: "vast",
            schedule: {
                adbreak1: {
                    offset: 'pre',
                    tag: 'http://xp1.zedo.com/jsc/c2/fns.vast?n=2135__amp__c=121/102__amp__d=22__amp__s=1__amp__v=vast2__amp__pu=__page-url____amp__ru=__referrer____amp__pw=__player-width____amp__ph=__player-height____amp__z=__random-number__'
                }
             }
        }   
    });
</script>
于 2014-03-12T06:44:20.450 回答