javascript - VideoJs Ads Referenced Error on Basic Setup -


hey guys want ask if can see problem, not sure if tired or getting dumber , dumber day day:

<body>  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"        poster="http://video-js.zencoder.com/oceans-clip.png"        data-setup="{}">     <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4'/>     <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm'/>     <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg'/> </video>     <link rel="stylesheet" href="../../videojs-contrib-ads-master/src/videojs.ads.css">      <!-- video.js must in <head> older ies work. -->     <script src="../../videojs-contrib-ads-master/video.dev.js"></script>     <script src="http://vjs.zencdn.net/c/video.js"></script>     <script src="../../videojs-contrib-ads-master/src/videojs.ads.js"></script>  <script type="text/javascript">     _v_("example_video_1").ready(function() {         var player = this;         player.ads(); // initialize ad framework      }); </script>  </body> 

so code videojs plugin videojsads can found here https://github.com/videojs/videojs-contrib-ads

my problem here is, getting error

uncaught typeerror: player.ads not function

but if example on github, need reference js , use .ads(). confuse right now

videojs.ads compatible videojs v4.0+ using v3.2.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -