MailOnline / videojs-vast-vpaid

video.js vast plugin
MIT License
296 stars 231 forks source link

Shouldn't the video play as soon the VAST ad finishes? #175

Open DrLightman opened 8 years ago

DrLightman commented 8 years ago

The VAST in my tests plays nice but when it finishes, the video doesn't start playing. My setup:

<video id="video" class="video-js" data-setup="{}">
    <source src="...link...to...mp4" type='video/mp4'>
    <p class="vjs-no-js">
        To view this video please enable JavaScript, and consider upgrading to a web browser that
        <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
    </p>
</video>

<script>
var adTag = 'http://.........';
videojs.plugin( 'adsSetup', function ( opts ) {
    var player = this;
    var adsCancelTimeout = 3000;
    var vastAd = player.vastClient( {
        adTagUrl: adTag,
        playAdAlways: true,
        adCancelTimeout: adsCancelTimeout,
        adsEnabled: true,
        vpaidFlashLoaderPath: '/video-assets/js/videojs-vast-vpaid/VPAIDFlash.swf'
    } );
} );
var video = videojs( 'video', {
    autoplay: true,
    controls: true,
    preload: 'auto'
} );
video.adsSetup( {} );
</script>

Shouldn't the video start as soon the VAST creative finishes playing?

Forgot to mention, I'm using videojs 5

DrLightman commented 8 years ago

Could that be dued to all these js errors popping in console?

console

DrLightman commented 8 years ago

As for this issue, I report what a technician has just wrote me:

It’s worth to mention, that VPAID seems to be the only ad after which your content video does play (with and without skip).

michalk-k commented 8 years ago

Hmm, On my sites, videos start to play automatically after preroll. XML feed received from provider has VAST root element so I assume it's VAST indeed. Maybe it's related to VAST elements defined in xml feed?

BTW in my case those notifications appear to but doesn't affect anything I could know. However I reported the issue already.