My videojs Vast player failed to load video flash ads
<p>As you can see the examples here <a href="https://github.com/theonion/videojs-vast-plugin,the" rel="nofollow">https://github.com/theonion/videojs-vast-plugin,the</a> player plays video ad before the main video.But when I put the urls offered by my advertisers in my own HTML page,no ad and I have to click the play button then the main video will start.This is the code.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta charset="utf-8" /&gt;
  &lt;title&gt;Video.js VAST Example&lt;/title&gt;

  &lt;!--&lt;link href="http://vjs.zencdn.net/4.7.1/video-js.css" rel="stylesheet"&gt;--&gt;
  &lt;link rel="stylesheet" href="css/video-js.css"&gt;
  &lt;link rel="stylesheet" href="videojs.vast.css"&gt;
  &lt;link href="lib/videojs-contrib-ads/videojs.ads.css" rel="stylesheet" type="text/css"&gt;
  &lt;link href="videojs.vast.css" rel="stylesheet" type="text/css"&gt;
  &lt;script src="https://pv.sohu.com/cityjson?ie=utf-8"&gt;&lt;/script&gt;
  &lt;style&gt;
    .example-video-container {
      position: absolute;
      top: 30px;
      left: 50%;
      margin-left: -315px;
    }
    #vid2 {
      position: absolute;
      top: 30px;
    }
  &lt;/style&gt;
  &lt;!--[if lt IE 9]&gt;&lt;script src="lib/es5.js"&gt;&lt;/script&gt;&lt;![endif]--&gt;
  &lt;!--&lt;script src="http://vjs.zencdn.net/4.7.1/video.js"&gt;&lt;/script&gt;--&gt;
  &lt;script src="js/video.js"&gt;&lt;/script&gt;
  &lt;script src="lib/videojs-contrib-ads/videojs.ads.js"&gt;&lt;/script&gt;

  &lt;script src="lib/vast-client.js"&gt;&lt;/script&gt;
  &lt;script src="videojs.vast.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

  &lt;div class="example-video-container"&gt;
    &lt;video id="vid2" class="video-js vjs-default-skin" autoplay controls preload="auto"
        poster=""
        data-setup='{}'
        width='710'
        height='500'
        &gt;
      &lt;source src="v1.mp4" type='video/mp4'&gt;
      &lt;!--&lt;source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm'&gt;
      &lt;source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg'&gt;--&gt;
      &lt;p&gt;Video Playback Not Supported&lt;/p&gt;
    &lt;/video&gt;
  &lt;/div&gt;

  &lt;script type="text/javascript"&gt;

    console.log(returnCitySN["cip"]+','+returnCitySN["cname"]);
    videojs('vid2',{}, function () {
      var timestamp=Math.round(new Date().getTime()/1000);
      console.log(timestamp);
      var player = this;
      player.ads();
      player.vast({
         url:'https://p.algovid.com/vpvast?p=99974938&amp;cb=' + timestamp + '&amp;d=https%3A%2F%2Fh5.xcloudgame.com&amp;w=710&amp;h=500'
      });
      player.on('readyforpreroll',function(){
        player.ads.startLinearAdMode();
        console.log('adsstart');
        player.one('ended', function() {
          player.ads.endLinearAdMode();
          console.log('adsend');
        });
      });

    });
  &lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>And the xml file return this.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;VAST version="2.0"&gt;
&lt;Ad id="VPAID"&gt;
&lt;InLine&gt;
&lt;AdSystem version="1.0"&gt;Cedato&lt;/AdSystem&gt;
&lt;AdTitle&gt;Cedato VPAID Ad Manager&lt;/AdTitle&gt;
&lt;Impression /&gt;
&lt;Creatives&gt;
&lt;Creative sequence="1"&gt;
&lt;Linear&gt;
&lt;Duration&gt;00:00:30&lt;/Duration&gt;
&lt;MediaFiles&gt;
&lt;MediaFile delivery="progressive" width="710" height="500" scalable="1" type="application/x-shockwave-flash" apiFramework="VPAID"&gt;https://c.algovid.com/player/cedato_vpw_ima_101.82.swf?vp=378&amp;p=99974938&amp;sid=&amp;w=710&amp;h=500&amp;h=500&amp;w=710&amp;pv=102.83&amp;d=https%3A%2F%2Fh5%2Excloudgame%2Ecom&lt;/MediaFile&gt;
&lt;MediaFile delivery="progressive" width="710" height="500" scalable="1" type="application/javascript" apiFramework="VPAID"&gt;https://c.algovid.com/player/cedato_vpaid_102.83.js?p=99974938&amp;sid=&amp;w=710&amp;h=500&amp;h=500&amp;w=710&amp;pv=102.83&amp;d=https%3A%2F%2Fh5%2Excloudgame%2Ecom&lt;/MediaFile&gt;
&lt;/MediaFiles&gt;
&lt;/Linear&gt;
&lt;/Creative&gt;
&lt;/Creatives&gt;
&lt;/InLine&gt;
&lt;/Ad&gt;
&lt;/VAST&gt;</code></pre>
</div>
</div>
</p>

<p>Is there anyone can tell me how to fix this?  </p>