About

Javascript plugin to play VAST 3.0 ads on HTML5 video. VAST 3.0 is a standard for video ad streaming. This javascript plugin parses a standard file and play ad as a pre-roll. More info on VAST 3.0 can be found at IAB

Features:

  • Plays *.mp4 creative as a Pre-roll
  • Caption support on top of Ad video
  • Pings VAST 3.0 impression pixel
  • Clickthrough support
  • Pings tracking URIs (start, first quartile, mid point and complete)

Demo

VAST URL source: Livestream
Video clip source: Disney Nature's Oceans

Code:


//Set VAST AD URL
var vast_url = 'http://ad3.liverail.com/?LR_PUBLISHER_ID=1331&LR_CAMPAIGN_ID=229&LR_SCHEMA=vast2';
//Parameters: 'Video Player ID', 'VAST URL', OPTIONS
html5vast("test-video",vast_url,{
	ad_caption: 'Advertisement'	
});