3 Replies Latest reply: Aug 1, 2013 12:02 AM by mihau12345 RSS

    Configurate what controlbuttons to display

    Itidenandreas Community Member

      Hi

      I've tried to read the configuration and sourcecode and the forums. But havn't found an easy way to config what buttons to display.

      For example how do I remove the HD-indicatior and/or fullscreenbutton. Is this availble in the config xml?

      Thanks

      /Andreas

        • 1. Re: Configurate what controlbuttons to display
          Silviu Vergoti Adobe Employee

          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 CommunityMVP

            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 Community Member

              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