Reply
Visitor
PA_Ryan
Posts: 3
Registered: ‎02-25-2011
0 Kudos

Disable adds on externally embedded domains

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

 

 

Brightcove Team
BC-BrandonA
Posts: 62
Registered: ‎12-09-2008
0 Kudos

Re: Disable adds on externally embedded domains

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