Implementation
Videoplaza Monetizer is implemented straight into your video player via our plugin API. The only exceptions are our JavaScript library that needs to be loaded along the implemented video player as well as some Flashvar variables that you can define in your HTML page to override default settings.
To implement Videoplaza Monetizer into your video player you need to prepare the player for runtime loading of our plugin as well as configure it to be able to handle communication with the plugin trough the API.
Generally, this is done by building what we call a bridge class, which takes care of all the communication to the Videoplaza plugin. The bridge class usually takes care of loading our plugin swf file from our servers (about 15 KB) and defines all the means of communication back and forth between the player and the plugin.
Videoplaza Monetizer is implemented by building a bridge that handles communication with the Videoplaza plugin. The bridge is compiled into your own video player swf which then loads our plugin swf from our servers at runtime.
Communication methods
The player and the plugin communicates via two sets of methods. The first set of methods is required for communicating events from within the player to the plugin. These are all defined in the API and it is your job to trigger the right method whenever the event is triggered in the player.
For instance, whenever the user presses the pause button, you need to trigger the appropriate method in the bridge to communicate that to our plugin.
The other set of methods is responsible for handling events that happens in the plugin. The bridge class subscribes as a listener to the plugin, which then trigger events as they happen. With this set of methods it is your job to add all the logic required to achieve the appropriate behavior within the player.
For instance, whenever a user clicks an overlay banner, the plugin will trigger an event for that (expecting the player to pause itself) and then show the second part of the ad. In other words, it is your job to add the logic to the callback method within the bridge to actually pause the player.
All the concepts that the plugin and the player communicate are on a conceptual and abstract level. This makes the implementation flexible for future features. Videoplaza can for instance develop and add new ad formats without you being required to update your implementation.
That’s why we describe our product as ‘future proof’.

