theonion/videojs-vast-plugin

VAST Ads are not Played on PC/Mobile!

Closed this issue · 0 comments

Hello,
I have this code which uses VAST XML with m3u8 video but the ad isn't played and there are none error messages.

<video id="example-video" width=960 height=540 class="video-js vjs-default-skin" controls>
    <source src=""
            type="application/x-mpegURL">
</video>
<script src="~/Content/VideoJS/js/videojs.js"></script>
<script src="~/Content/VideoJS/js/videojs-contrib-hls.js"></script>
<script src="~/Content/VideoJS/js/vast-client.js"></script>
<script src="~/Content/VideoJS/js/videojs.vast.js"></script>
    <script>
        var vid1 = videojs('example-video');
    vid1.muted(true);
    vid1.ads();
    vid1.vast({
        url: ''
    });
</script>

Thanks.