MailOnline / videojs-vast-vpaid

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

can't play vpaid tags #193

Open ohadsas opened 8 years ago

ohadsas commented 8 years ago

I'm trying to load vpaid tag and i'm getting the following errors:

D ERROR: VAST Error: on VASTClient.getVASTAd.validateAd, could not find MediaFile that is supported by this video player VASTError {message: "VAST Error: on VASTClient.getVASTAd.validateAd, co… MediaFile that is supported by this video player", code: 403} I'm using videojs_5.vast.vpaid.js with this vpaid tag

In the Demo-v5 page it is only loading in the second update, the first update is throwing the same errors(Mine is not working at all). the video.js and videojs.min.css has the same content of the demo page links. Code example:

<!DOCTYPE html>
<html lang="en">
<head>
    <link href="bin/videojs.min.css" rel="stylesheet">
    <link href="bin/videojs.vast.vpaid.css" rel="stylesheet">
    <script type="application/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script type="application/javascript" src="bin/video.js"></script>
    <script type="application/javascript" src="bin/videojs_5.vast.vpaid.js"></script>
</head>
<body>
<video id="example_video_1" class="video-js vjs-default-skin"
       controls="" preload="auto" width="800" height="700"
       poster="http://vjs.zencdn.net/v/oceans.png">
</video>
<script>
    var player;
    $(document).ready(function() {
        player = videojs('example_video_1', {
            techOrder: ['html5','flash'],
            autoplay: false,
            sources: [{
                type: "video/mp4",
                src: "http://vjs.zencdn.net/v/oceans.mp4"
            }],
            plugins: {
                vastClient: {
                    adTagUrl: "http://vast.ssp.optimatic.com/vast/getVast.aspx?id=EXATIzPgcIq7&zone=default&pageURL=[INSERT_PAGE_URL]&pageTitle=[PAGE_TITLE]&cb=[CACHE_BUSTER]",
                    adsCancelTimeout: 5000,
                    adsEnabled: true
                }
            }
        });
    });
</script>
</body>
</html>

Whats the error with my implementation, How can i make it work on the first load?

Thank you in advance.

Fetz commented 8 years ago

Looks like is loading the first first swf correctly (that is why appears that spinning) but looks like is failing the adStart. I would need to debug with https://github.com/MailOnline/VPAIDFLASHClient, since looks a possible issue there

ohadsas commented 8 years ago

Hi @Fetz, any news about it?

stoicbuddha commented 8 years ago

I'm having the same issue with this plugin. Has somebody found a solution/fix for it yet?