Skip to content

Instantly share code, notes, and snippets.

@banderson623
Created April 1, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banderson623/6134880524212712a21a319b5076b53d to your computer and use it in GitHub Desktop.
Save banderson623/6134880524212712a21a319b5076b53d to your computer and use it in GitHub Desktop.
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