-
1. Re: Configurate what controlbuttons to display
Silviu Vergoti Feb 28, 2011 12:47 AM (in response to Itidenandreas)Hi Itidenandreas,
you can't do that through configuration - you will need to modify the control bar code.
-
2. Re: Configurate what controlbuttons to display
Robert Reinhardt Mar 22, 2011 10:27 AM (in response to Silviu Vergoti)As a follow-up, this is REALLY simple to do, from the Strobe Media Playback 1.5.1 package: just comment out lines ~ 139 - 143 in the ControlBar class (ControlBar.as in the org.osmf.player.chrome package):
// HD indicator
/* REMOVE HD INDICATOR
var hdIndicator:QualityIndicator = new QualityIndicator();
hdIndicator.layoutMetadata.verticalAlign = VerticalAlign.MIDDLE;
hdIndicator.layoutMetadata.horizontalAlign = HorizontalAlign.RIGHT;
rightControls.addChildWidget(hdIndicator);
*/
and then, comment out the configure reference to it in line ~ 194/195:
configureWidgets
( [ leftMargin, beforePlaySpacer, pauseButton, playButton, previousButton, nextButton, afterPlaySpacer
, leftControls
, scrubBar, afterScrubSpacer
, timeViewWidget, afterTimeSpacer
/*, hdIndicator*/, muteButton, afterVolumeSpacer
, fullscreenEnterButton, fullscreenLeaveButton, afterFullscreenSpacer
, rightControls, rightMargin
]
);
(Notice I only commented out the hdIndicator reference.)
Then, recompile the project in Flash Builder and boom! you've got an "HD-less" control bar!
-Robert Reinhardt, creator of videoRx.com
-
3. Re: Configurate what controlbuttons to display
mihau12345 Aug 1, 2013 12:02 AM (in response to Robert Reinhardt)Whats the best solution for adding some new buttons?
I just want to add some image (acting like a button) with source from my asset directory.
I have no idea what i class i need to extends (for sure it's Widget Class) to add my new widget to ControlBar.I'd like to use image asset/redDot.png for showing thats it's LIve Streaming - next to the 00:00 Label on ControlBar




