Reply
Brightcove Team
BC-Oscar
Posts: 455
Registered: 12-11-2008
0

Re: Controlling Player Volume with the Player APIs

WilHarris and yrox,

 

To accomplish what you need this is what I would do:

 

1. Build a custom component and add it to BEML using SWFLoader.

 

  •  Check out this dev article on how to create a custom player component and use it as a BEML component.

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

  • In your custom component, you can access the Player APIs. To read a parameter from the snippet with the volume you want to preset, call getPlayerParameter() in the Experience Module API

       http://docs.brightcove.com/en/player/com/brightcove/api/modules/ExperienceModule.html#getPlayerParam...()

  • To set the volume use the setVolume() API on the VideoPlayer API
I hope this helps.

 

 

 

New Member
drozzen
Posts: 5
Registered: 09-27-2010
0

Re: Controlling Player Volume with the Player APIs

Can there be one javascript file used for multiple players?

Brightcove Team
BC-Oscar
Posts: 455
Registered: 12-11-2008
0

Re: Controlling Player Volume with the Player APIs

Do you mean using the same JS script to set the volume for different players? It's possible, here is a post related to the Advertising API but the same principle can be used for any of the other APIs. 

 

http://forum.brightcove.com/t5/Ad-APIs/ExternalAd-with-more-than-one-player-on-the-same-page/m-p/651...

New Member
drozzen
Posts: 5
Registered: 09-27-2010
0

Re: Controlling Player Volume with the Player APIs

I'm fairly new to the BC platform. How do I implement the Javascript within ALL of our players plain and simple?

New Member
drozzen
Posts: 5
Registered: 09-27-2010
0

Re: Controlling Player Volume with the Player APIs

I am trying to make the player on http://fuel.tv play automatically on mute. Do I need a seperate js file to make it happen? I tried following directions and was unable to solve the issue. Please check it out.