SpotX FLV Player Integration
Overview: This option is for publishers who currently use the JW Media Player, or a similar player, or have not already settled on a video player for their FLV formatted video content.
Technology: SpotXchange has integrated its SpotX Ad Player with the JW Media Player for publishers that need an "out of the box" solution for monetizing their content. This integration option enables the publisher to support all current (InStream and Overlay) and future SpotXchange ad types.
Below you can see the code necessary for this example. The SpotX_FLV_Player.swf file is the SpotX FLV Player (note: it must be loaded from http://cdn.spotxchange.com/flash/SpotX_FLV_Player.swf so that the latest version is always used). The swfobject JavaScript is used to embed the SpotX FLV Player in this web page. There are two variables to set: spotx_channel_id and file. spotx_channel_id is your Channel ID and file is the URL of the video. Below is code that will replicate the example on this page. (Downloading swfobject.js is necessary)
Because the SpotX FLV Player is based on the JW Media Player it has all of the functionality of that player. See Supported Flashvars on the JW Media Player site for a full list of variables and features. Do not forget to send in the width and height of the player. Without these parameters the video will occasionally appear distorted in Internet Explorer.
A note on contextual ads: In order to match contextual ads to the video you must send in some information about that video. We call this the metadata. There are four flash variables which make up the metadata: title, description, id, and duration. Title, description, and duration are the most important. If you have a unique id for the video that is 64 characters or less please put it into the flash variables too.
Description: In the example below, a pre-roll video ad plays before a piece of video content and a matching 300x250 Companion Banner is placed adjacent to the video player. Clicking either the video ad or the companion banner opens a new tab in your browser and directs you to the advertiser's landing page.
When the pre-roll has completed, the video content begins playing. Three seconds into play, an Overlay Invitation appears atop the video content. Clicking the invitation pauses the video content and plays the corresponding video advertisement. When the video ad has completed playing, the content is un-paused and continues playing to its conclusion.
When the content has reached its conclusion, a post-roll ad and its companion banner are displayed.
Refreshing your browser plays the next available ad, until all available ads have been shown. When all available ads have been shown, ads will not be available to you until after 20 minutes have expired (or until you clear your cookies), at which point the sequence will begin anew starting with the first available ad.
Troubleshooting: If you don't see any ads, even after you've cleared your cookies, your browser may not be sending a valid US IP address. If you are not in the US or if you are behind a firewall, please contact your SpotXchange account representative for assistance in viewing this example.
Alternative Integration Options: SpotXchange offers a number of flexible ways to query our network for video ads. If this particular method does not meet your needs, please review the integration options page for alternative methods.
