Skip to content

Instantly share code, notes, and snippets.

@gperrudin
Created August 10, 2015 15:30
Show Gist options
  • Save gperrudin/b89a70b15a1d192b69e2 to your computer and use it in GitHub Desktop.
Save gperrudin/b89a70b15a1d192b69e2 to your computer and use it in GitHub Desktop.
Test videojs-vast-vpaid
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject 2 dynamic publishing example page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="bin/video-js.css" rel="stylesheet">
<script src="bin/video.js"></script>
<script src="bin/swfobject.js"></script>
<link href="bin/videojs-vast-vpaid.css" rel="stylesheet">
<script src="bin/videojs-vast-vpaid.js"></script>
<video id="example_video_1" class="video-js vjs-default-skin"
controls preload="auto" width="640" height="264"
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup='{
"plugins": {
"vastClient":{
"url": "http://search.spotxchange.com/vast/2.00/79391?VPAID=1&content_page_url=test.com&cb=3202405928168446&player_width=300&player_height=250",
"adsCancelTimeout": 10000,
"adsEnabled": true
}
}
}'>
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a
href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a
href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment