08-11-2011 11:25 AM
I recently ran into an issue where a video was embedded on a third-party site and that site drove an inordinate amount of traffic to our system. The vendor thought we spammed the video since we reached our monthly campaign goals in a matter of minutes.
Is it possible to disable ads on a player if that player is embedded on a third-party domain? For example, any player embedded on mysite.com would roll pre-roll but if someone embeds a video on yoursite.com the ads are disabled automatically but NOT on mysite.com
08-18-2011 04:05 PM
You could write a plugin to check the root domain of the page, and if it's not mysite.com just disable advertising using the setAdPolicy() method of the advertising module. Because of the way some sites work with embedding Flash players (like MySpace), you won't always be able to read the domain of the page, which is normally done with getExperienceURL() of the experience module through the API. But if you couldn't read the domain, you could always default to having ads off.
- Brandon
Brightcove Inc., a leading global provider of cloud content services, provides a family of products used to publish and distribute the world's professional digital media. The company's products include Brightcove Video Cloud, the market-leading online video platform, and Brightcove App Cloud, the pioneering content app platform. Together, more than 4,200 customers in 50 countries rely on Brightcove's cloud content services to build and operate exceptional media experiences across PCs, smartphones, tablets and connected TVs.
Brightcove Inc.
© 2012 Brightcove Inc.
