MailOnline / VPAIDFLASHClient

Exposes FLASH VPAID API to JS
MIT License
22 stars 20 forks source link

VAST Error: timeout while waiting for the video to start playing #18

Open selimonline opened 8 years ago

selimonline commented 8 years ago

Dear,

I am trying to run a vpaid ads here (https://editorsdepot.com/video/videojs/vast.php). 90% times I can see this error (VAST Error: timeout while waiting for the video to start playing). And sometimes (10% times), I can see ads. Can anyone please help me, what's wrong exactly. Things need to mention, these ads(tags) works 100% times in jwplayer... Here is my full code :

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link href="https://vjs.zencdn.net/5.9.2/video-js.css" rel="stylesheet">
  <link href="vast/videojs.vast.vpaid.min.css" rel="stylesheet">

</head>
<body>
  <video id="videojsPlayer" class="video-js vjs-default-skin"
      controls preload="auto" width="640" height="360"
      poster="https://d1sinn63yldtx0.cloudfront.net/thumbnails/thumbnails-ed_SBQceGipWuIxIxHA-00002.jpg">

      <source src="https://d1sinn63yldtx0.cloudfront.net/videos/edvideos_gvynSbFA_mp4_480x270.mp4" type="video/mp4" label="480p" res="480" />
  </video>
  <script src="https://vjs.zencdn.net/5.9.2/video.js"></script>

  <!-- vast loads js -->
  <script src="vast/videojs_5.vast.vpaid.min.js"></script>

<script>
  var videojsPlayer = videojs('videojsPlayer');
  videojsPlayer.vastClient({
    adTagUrl : "https://wlmad.ads.tremorhub.com/ad/tag?adCode=9e6km&playerWidth=480&playerHeight=270&mediaId=2008&mediaTitle=Stripes%20Multicolor%20Blender%20only%20Intro%20template&mediaDesc=Cool%20stripes%20multicolor%20Blender%20only%20Intro%20template.%20This%20is%20a%20free%20video%20template.&mediaUrl=https://editorsdepot.com/embed/stripes-multicolor-blender-only-intro-template&srcPageUrl=https://editorsdepot.com/stripes-multicolor-blender-only-intro-template",
    adsEnabled : true,
    autoResize : true,
    playAdAlways: true,
    adsCancelTimeout: 5000,
    vpaidFlashLoaderPath: 'vast2/VPAIDFlash.swf'
  });
</script>

</body>
</html>

Thanks in advance....

ohadsas commented 8 years ago

+1