02-26-2009 05:10 PM - edited 02-26-2009 05:12 PM
04-20-2009 12:05 PM
Hi Chris,
Is it intentional that a call to setVolume() does not trigger a volumeChanged() event? That's been my experience. If I only have one volume control than I can assume that whatever I last tried to set it to is the current value, however that does seem to render the volume change event ("mediaVolumeChange") somewhat pointless. The volume change event does get dispatched once at player start up.
In your example you can kind of see that the slider control within the flash player is not aware of any volume changes made via the html buttons (if it's open already) and that the slider only checks the volume when opening. That may not have been your intention but it highlights the point.
Just wondering if this is supposed to be the case.
Cheers d
04-20-2009 12:43 PM
d,
The mediaVolumeChange event fires any time the in player volume control is used as well as when the volume is changed through the APIs with setVolume(), I just wasn't listening for that event.
I've updated my example to show this by adding an event listener and then just tracing a message when it occurs.
video.addEventListener(BCVideoEvent.VOLUME_CHANGE, onVolumeChange);
Does that help? If not, let me know.
04-20-2009 02:17 PM
yup you are right. My event handler was not getting called because of a problem with registration - I think I assumed too much after looking at the eg. Thanks for clarifying.
08-06-2009 09:59 AM
Does this method apply to macs as well? the downloads seem to be for PC's.
Thanks
holly
08-06-2009 10:13 AM
Yes this example works with Macs, I just viewed it in Safari 3.1.2 on MacOS 10.5.6. Are you having difficulty?
What browser is experiencing the issue?
John Huebner
QA
08-06-2009 10:15 AM
08-06-2009 10:51 AM - edited 08-06-2009 11:08 AM
Holly,
This solution only works if you add custom code. That code can be javascript in your web page or it can be built into a custom player. The example uses javascript in a web page.
It might be a good idea to start with the overview
http://support.brightcove.com/en/docs/player-api-o
and then look at the Javascript version of the Player API documentation.
The useful, step by step instructions are duplicated in seperate
docs for Javascript and ActionScript(Flash) so that we can give
specific examples, so that is the doc that will probably be the most
helpful:
http://support.brightcove.com/en/docs/using-javasc
Then start from zipfile in this thread, and take the following steps (borrowed from the Player API examples):
1) Create a Video Player instance in the Brightcove Publishing Module.
2) Make sure you've enabled the API for the player by checking "Enable ActionScript/JavaScript APIs" in the edit settings dialog for the player you just created.
3) Copy the playerID and publisherID that you find in the ActionScript snippet generated by the Experience Module when you select "get code". Update these values in the player snippet found in JavaScriptTileList.html.
4) In the Media Module, copy the ID of a playlist you wish to load. Assign this value to the PLAYLIST_ID property at the top of the JavaScriptTileList.js file.
5) Load JavaScriptTileList.html in browser.
I hope that helps,
John
08-27-2009 07:39 AM
Hi guys,
I'm trying to get my head around how volume control could be set using BEML (Javascript on the page won't work for me as I want the settings to travel with the player if it is virally embedded).
Am I right in thinking that I would need to create a SWF that is included in the BEML code that calls the setVolume method? It would be lovely if volume was one of the parameters included in the BrightcoveExperience class so that it could simply be set as a param name in the HTML embed code.
Any suggestions as to the simplest way to implement this gratefully accepted...
09-17-2010 11:44 AM
Hi,
I am also looking for BEML example to implement 50% default volume for my players. Is it possible to do so using BEML?
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.
