MailOnline / videojs-vast-vpaid

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

Help to integrate Vast/Vpaid Tags #317

Open julieneperk opened 6 years ago

julieneperk commented 6 years ago

been trying to figuring it for few hours already and it seems i cant. what did i missed? a help will be appreciated.


  | <!DOCTYPE html>
-- | --
  | <html lang="en">
  | <head>
  | <title>videojs-vpaid-test</title>
  | <script src="/cdn-cgi/apps/head/S3JjcFpzxmLLGkBi-k7yoR6TgVs.js"></script><link href="//vjs.zencdn.net/5.11/video-js.min.css" rel="stylesheet">
  | <link href="bin/videojs.vast.vpaid.css" rel="stylesheet">
  | <link rel="stylesheet" type="text/css" href="//mailonline.github.io/videojs-vast-vpaid/styles/videojs.vast.vpaid.css" />
  |  
  | <link rel="stylesheet" type="text/css" href="//mailonline.github.io/videojs-vast-vpaid/demo/styles/demo.css" />
  | <script type="application/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  | <script src="http://vjs.zencdn.net/5.10.2/video.js"></script>
  |  
  | <script type="text/javascript" src="//mailonline.github.io/videojs-vast-vpaid/scripts/es5-shim.js"></script>
  | <script type="text/javascript" src="//mailonline.github.io/videojs-vast-vpaid/scripts/ie8fix.js"></script>
  | <script type="text/javascript" src="//mailonline.github.io/videojs-vast-vpaid/scripts/videojs_5.vast.vpaid.js"></script>
  | </head>
  | <body>
  | <video id="example_video_1" class="video-js vjs-default-skin" controls="" preload="auto" width="580" height="320" poster="http://vjs.zencdn.net/v/oceans.png">
  | </video>
  | <script>
  | var player;
  | $(document).ready(function() {
  | player = videojs('example_video_1', {
  | techOrder: ['html5','flash'],
  | autoplay: false,
  | sources: [{
  | type: "video/mp4",
  | src: "http://vjs.zencdn.net/v/oceans.mp4"
  | }],
  | plugins: {
  | vastClient: {
  | adTagUrl: "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpreonly&cmsid=496&vid=short_onecue&correlator=",
  | adsCancelTimeout: 5000,
  | adsEnabled: true
  | }
  | }
  | });
  | });
  | </script>
  | </body>
  | </html>
  |