Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Outstream Video Support #1082
Type of change
Description of change
As media formats proliferate a Renderer type is proposed. This provides a set of functions to specify, load, configure and utilize a custom 3rd party renderer for a given bid's media format.
An initial use case for Renderer is support for outstream video as shown in this change. Here we are assuming the
A renderer source could also be specified at the adapter or publisher level, which can be done by setting the
To implement in a bidder adapter, import Renderer module:
An example looks like:
Once a renderer is installed on a bid, the renderer can set it's render function using
The render function will receive the bid response object and the renderer can be called with it:
For the AppNexus Outstream Video renderer, the second argument takes a function that is invoked on events. We use this to call the Renderer's
Apr 19, 2017
Hey @mkendall07 quick question: If you want to render outstream without DFP just straight by calling and rendering on the page, I took the example from postbid, modifying it to video, then getting bids returned, but don't get the ad to render. Not sure if this works for outstream in the same fashion as for display using the iFrame. Appreciate a short note.