MailOnline / videojs-vast-vpaid

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

Subtitles are switched off and kept off after ad is played #295

Open DoomTay opened 7 years ago

DoomTay commented 7 years ago

If I have a setup like this

<div id='player'>
    <video id="video" class="video-js vjs-default-skin" width="640" height="360" controls autoplay>
        <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
        <track kind="subtitles" src="upc-video-subtitles-en.vtt" srclang="en" default>
    </video>
</div>
<script>
var player = videojs("video",{
    plugins: {
        "vastClient": {
            "adTagUrl": "http://servedby.flashtalking.com/imp/1/31714;812030;208;xml;DailyMail;640x360VASTHTML5/",
            "adsEnabled": true
        }
    }
});
</script>

then despite the "default" attribute subtitles are switched off and kept off when the actual video begins