You won’t be able to do that with the Video.js player. The JW Player has VAST support built in.
Thread Starter
jj
(@shadyshroomz)
What about a plugin for video.js? I found this one:
https://github.com/theonion/videojs-vast-plugin
How would I go about installing this plugin?
Yes, there is that plugin. I haven’t tested it out and I can see already that switching resolutions will likely cause the pre-roll ad to play again. You’ll have to do a bunch of customization to get it to work. You need to upload the files to your server, edit either my plugin or your theme so that the plugin’s JS files are loaded, and then initialize it using the vast plugin instructions by adding to the “plugins” object in my plugin, which is on line 1867 of the main file, but right now that’s tied to enabling the resolution selector plugin which seems to be in direct conflict with the ads plugin. I don’t have a good solution for that.
Thread Starter
jj
(@shadyshroomz)
Right….. I have no idea how to do any of that… is there say a way to block the video until an action completes. Have the ad, play that, make the action complete, then play the video?
So like, how much would I have to donate for you to add an easy way to do this into the plugin? I would think it shouldn’t be too hard to block the video with another video until the first video finishes… then play the second video… Maybe? Is this possible? Thanks anyways for being so quick at responding, you’re a great dude 😀
It is against the rules of this forum to discuss payments for services, but I will say if you don’t want to pay $150 for JW Player, you definitely don’t want to pay what I consider a reasonable rate for custom coding. I might integrate that Video.js ads plugin some day but I’m booked on my day job editing TV shows until April 2015 so I can’t promise any major enhancements to this free plugin any time soon. If it’s really important for you to have video pre-rolls right away, you might want to try this commercial plugin. I don’t know anything about it beyond what it says on that page, but it seems to do what you want.
Thread Starter
jj
(@shadyshroomz)
Alright, well thanks anyways 🙂
If you do end up adding anything, make sure to let me know 😀
Thanks for this awesome plugin!