Created
April 1, 2019 19:41
-
-
Save banderson623/6134880524212712a21a319b5076b53d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const videoElement = document.querySelector('video'); | |
const concertVast = new ConcertVast(); | |
const url = 'https://www.ad-server.com/some-great-vast.xml'; | |
concertVast.loadRemoteVast(url).then(e => { | |
concertVast.applyToVideoElementAsPreroll(videoElement, { | |
autoplay: true, | |
muted: true | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment