Reply
New Member
tedK
Posts: 2
Registered: ‎08-27-2009
0 Kudos
Accepted Solution

has anyone added a close button to the companion ad section?

This is in regards to our out-of-the-box player selection for one of our magazines...

www.self.com/video 

 

we are using a compact tabbed navigation template.

there is a 300x250 companion ad that goes along with the pre-roll.

we want to be able to give the user the option to close the companion ad & broswe the playlist while the pre-roll is playing.

Anyone have any ideas?  is there a command to invoke? 

 

Thanks,

Ted 

Brightcove Team
BC-BrianD
Posts: 275
Registered: ‎12-10-2008
0 Kudos

Re: has anyone added a close button to the companion ad section?

Hi Ted, we have no built-in functionality to show a close button on a ExpandingBanner companion ad when a video/overlay ad is showing.  But we do have a contract() API for the ExpandingBanner component:

 

http://docs.brightcove.com/en/player/com/brightcove/api/components/ExpandingBanner.html

 

I've never used this function before, but I assume you could call this when the main ad is playing.  Then you would need to create your own close button, perhaps with a custom player component:

 

http://support.brightcove.com/en/docs/creating-custom-player-components

 

The only thing I'm not sure about in this approach is whether the close button in a custom player component could actually be shown over the ad (as it may always display below the ad in the display).  If that looks like it's happening, I can try to provide some alternatives for displaying a custom close button.

 

-----
Brian Deitte, Brightcove player developer
http://twitter.com/bdeitte
New Member
tedK
Posts: 2
Registered: ‎08-27-2009
0 Kudos

Re: has anyone added a close button to the companion ad section?

thanks - will give it a shot & let you know what happens ;-)

Ted