MailOnline / videojs-vast-vpaid

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

My Vpaid ads aren't playing. Is there something wrong with my HTML? #120

Open SleepingNamja opened 8 years ago

SleepingNamja commented 8 years ago

I'm trying to post a video on wordpress with vpaid ads to preload the video, but the ads will never play. Is there anything wrong with my HTML?

  <script src="/path/to/swfobject.js"></script>
  <link href="/path/to/videojs-vast-vpaid.css" rel="stylesheet">
  <script src="/path/to/videojs-vast-vpaid.min.js"></script>
  <video id="example_video_1" class="video-js vjs-default-skin"
         controls preload="auto" width="640" height="264"
         poster="http://vjs.zencdn.net/v/oceans.png"
         data-setup='{
                  "plugins": {
                          "vastClient":{
                              "adTagUrl": "http://search.spotxchange.com/vast/2.0/79391?VPAID=js&content_page_url=http%3A%2F%2Fabovetopsecret.com&cb=5465465465465&player_width=640&player_height=360&deviceMozilla%2F5.0%20(Windows%20NT%2010.0%3B%20WOW64)%20AppleWebKit%2F537.36%20(KHTML,%20like%20Gecko)%20Chrome%2F46.0.2490.86%20Safari%2F537.36=&ip_addr=71.41.189.242",
                              "adsCancelTimeout": 5000,
                              "adsEnabled": true
                          }
                  }
             }'>
      <source src="http://vjs.zencdn.net/v/oceans.mp4" type='video/mp4'/>
      <source src="http://vjs.zencdn.net/v/oceans.webm" type='video/webm'/>
      <source src="http://vjs.zencdn.net/v/oceans.ogv" type='video/ogg'/>
      <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>
irfanfadilah commented 8 years ago

What VideoJS version do you use @SleepingNamja..?

If it's v5.x.x, try to use v4.x.x, I'm not sure but I think it's not support VideoJS v5.x.x yet according https://github.com/MailOnline/videojs-vast-vpaid/issues/74..

peterrei commented 8 years ago

this plugin support the version 5 of VideoJs, here you can find a demo to try your ad tag: http://mailonline.github.io/videojs-vast-vpaid/index_5.html by the way in the demo above your tag works fine.

maybe in your script you have to replace /path/to/swfobject.js , /path/to/videojs-vast-vpaid.css and /path/to/videojs-vast-vpaid.min.js with the real path (depending from your installation/deploy).

irfanfadilah commented 8 years ago

Ah yes, sorry I was wrong, thanks @peterrei.. :grin: It's worked fine in VideoJS 5 too..

@SleepingNamja, can you recheck the plugin version..? Because there's two versions, one for VJS v4 and one for VJS v5..

sky-beyond commented 8 years ago

Hi!, My test spotxchange vpaid ad not display..can anyone help me solved this issue..

Links:

http://xaphanentertainment.com/my-adsplayer/player-garry/

http://xaphanentertainment.com/my-adsplayer/player-garry/spotxchange.html

SleepingNamja commented 8 years ago

@irfanfadilah I'm using version 4.5 because it was the only wordpress plugin available that I found. The thing is, the video player is working fine on wordpress, except the ads don't even play.

sky-beyond commented 8 years ago

@irfanfadilah & @peterrei & @reborg

it's not work for me(when i using videojs 4/5 ,not get work with any of this).. spotxchange Test ad not work me... can any one help me to solved this..it's over week.not get success yet.. if you have online demo please! share with me...

irfanfadilah commented 8 years ago

@sky-beyond I haven't tried with VPaid yet.. But if you need demo:

http://mailonline.github.io/videojs-vast-vpaid/index_4.html (for VideoJS v4) http://mailonline.github.io/videojs-vast-vpaid/index_5.html (for VideoJS v5)

sky-beyond commented 8 years ago

Hi!, Thanks for quick reply..problem is my test ad not work...issue is only spotxchange...other vpaid ads works well..so,i need help for this..

Link: http://xaphanentertainment.com/my-adsplayer/player-garry/test-as.html

WesleyCarnicl commented 1 year ago

I'm trying to get it to work for my WordPress site as well I have been following all the how to's but not single one has even showed how to do it.