Start a new topic

VAST with Viblast: The play() request was interrupted by a new load request.

Dear Viblast Community, 


I tried to implement the example VAST XML (skippable pre roll) from Google. Unfortunately when I click on play this error occurs ins the console. Sometimes the pre roll starts and the video also starts. Sometimes the video loads after 7 seconds and I have to click on play again.  


viblast.js:103 Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.

 

  Here is my code:

<html>
<head>

  <link href="/js/vast/videojs-contrib-ads/videojs.ads.css" rel="stylesheet" type="text/css">
  <link href="/js/vast/videojs.vast.css" rel="stylesheet" type="text/css">

  <link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/4.12.0/video-js.min.css" rel="stylesheet">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/4.12.0/video.js"></script>

  <script src="/js/vast/vast-client.js"></script>
  <script src="/js/vast/videojs.vast.js"></script>
  <script src="/js/vast/videojs-contrib-ads/videojs.ads.js"></script>
  <script src="js/viblast/viblast.js"></script>

</head>
<body>

  <video id="vplayer" class="video-js vjs-default-skin"
    controls preload="false" width="640" height="264"
    poster=""
    data-setup='{"example_option":true}'
    data-viblast-key="xxx"
    >
   <source src="test-video/index.m3u8" type='application/x-mpegURL' />
  </video>

  <script>
        var vastXML = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=';

        var vid1 = videojs('vplayer');
        vid1.ads();
        vid1.vast({
          url: vastXML
        });

  </script>

</body>
</html>

  Someone have a hint or an idea how to solve this?


Best

Vincent


2 people have this problem
Login to post a comment