We need to show pre-roll video and companion ads in our video content in NewsMag (love the theme by the way!). Where can I find the video player code for the posts? I don’t want to break the way the theme works now, but I want to swap out the video player code so it does not use the simply iframe and I need to replace it with JWPLAYER code to support VAST calls to our video ad server.
1. Where can I find the code to change the way videos are rendered on posts pages.
2. Is there any plans to allow for 3rd party video players in this theme but keep the functionality of grabbing featured image etc from the video url…
Thanks!
Hi,
1. The theme uses wp embed functionality for video format supported videos. You can find theme’s video support implementation here: http://screencast.com/t/dKSOTpSXh
2. We don’t plan to extend the video format functionality to other video-sharing websites at the moment. Sorry!
Hope this helps!
Thanks for the message!
Thanks. Of course, after posting this, I found that file and was able to modify the function that outputs the player code for Vimeo so that our JWPLAYER Ads Edition player loads and shows our video and the pre-roll ads based on our VAST server. For anyone else wanting to do this, swapping out the player lets the rest of the theme’s goodness remain intact and no change the user’s workflow when adding content to the site.
In our case, since we use JWPLAYER, we cannot use it to show YOUTUBE videos since they already may have pre-roll ads so we left them as is using the existing theme code to display them. Our proprietary video content, that needed to have the analytics and advertising presented is all on Vimeo so this process workflow works for us.
Additionally, we added a companion ad <div> to the sidebar of the template so the companion banner will display when the video ad plays.
Hi,
Please check this guide for VAST ad tags – https://support.google.com/admanager/answer/10678356?hl=en
– https://doapp.navigaglobal.com/hc/en-us/articles/360044839351-Adding-a-Pre-roll-Ad-Tag-VAST-
I hope this will help you!