Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Not proberly working with videojs-youtube #81

Open
Evaldnet opened this issue Sep 22, 2015 · 1 comment
Open

Not proberly working with videojs-youtube #81

Evaldnet opened this issue Sep 22, 2015 · 1 comment

Comments

@Evaldnet
Copy link

My issue is when i trying to play a youtube video with a vast ad before it works fine on the desktop.
I have testet that in Internet Explorer 11, Microsoft Edge, Chrome 45, Firefox 40 on my Windows 10 Pro,
but when i trying to play my video on my iPhone 6 with iOS 9 it quick open and close, when i click again the ad open up,
and playing, when the ad is over it close again and i need to click again to play my youtube video.
I have also testet it on HTC with android and Samsung Galaxy S5 there will it not load at all,
that have been testet in native, chrome for android, and opera for android.

But if i don't choose to have ad before my youtube video it works fine on all my tests.

My Imports

    <link href="video-js.css" rel="stylesheet">
    <link href="videojs.ads.css" rel="stylesheet" type="text/css">
    <link href="videojs.vast.css" rel="stylesheet" type="text/css">
    <script src="video.js"></script>
    <script src="videojs.ads.js"></script>
    <script src="videojs.vast.js"></script>
    <script src="vast-client.js"></script>
    <script src="youtube.js"></script>
    <script> var vastUrl = "http://ad1.emediate.dk/eas?cu=17980&ty=video"; </script>

My Body

    <video id="youtube" class="video-js vjs-default-skin" controls preload="auto" width='650' height='400'>
        <source src="https://www.youtube.com/embed/Jwgf3wmiA04" type='video/youtube'>
        <p>Video Playback Not Supported</p>
    </video>
    <script>
    var youtube = videojs('youtube', {
        "techOrder": ["html5", "youtube", "flash"],
        "autoplay": false,
        "preload": "auto"
    });
    youtube.ads({ "debug": true });
    youtube.vast({
        skip: 3,
        url: vastUrl
    });
    //youtube
    </script>

My Console in Chrome 45
VIDEOJS: ads content-set -> ads-ready video.js:24:203
VIDEOJS: ads preroll? -> ad-playback video.js:24:203
VIDEOJS: ads ads-ready -> ad-playback video.js:24:203
VIDEOJS: ads ad-playback -> content-playback video.js:24:203

My friends iPhone Console
VIDEOJS: ads content-set -> ads-ready (video.js, line 24)
VIDEOJS: ads preroll? -> ad-playback (video.js, line 24)
VIDEOJS: ads ads-ready -> ad-playback (video.js, line 24)
VIDEOJS: ads ad-playback -> content-playback (video.js, line 24)

@thanhtu90
Copy link

hello sir,

I'm working on to apply vast on youtube video, but the ad never shows. Could you please send me your demo please? It will help me out a lot.

Thank you a lot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants