Class BrightcoveShowHideController

java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.player.mediacontroller.BrightcoveShowHideController
All Implemented Interfaces:
Component, ShowHideController

@Emits(events={"didShowMediaControls","didHideMediaControls"}) @ListensFor(events={"showMediaControls","hideMediaControls","enterFullScreen","exitFullScreen","didEnterFullScreen","didExitFullScreen"}) public class BrightcoveShowHideController extends AbstractComponent implements ShowHideController
Abstracts the show/hide operations.
  • Constructor Details

    • BrightcoveShowHideController

      public BrightcoveShowHideController(BrightcoveControlBar controlBar, BaseVideoView videoView)
      Builds the show/hide controller.
      Parameters:
      controlBar - The control bar object being shown and hidden.
      videoView - The SDK base video view.
  • Method Details

    • isShowControllerEnable

      public boolean isShowControllerEnable()
      It indicates whether the hide mechanism of the ShowHideController is enable or disable. It's enabled by default.
      Returns:
      true if enabled.
    • isHideControllerEnable

      public boolean isHideControllerEnable()
      It indicates whether the hide mechanism of the ShowHideController is enable or disable. It's enabled by default.
      Returns:
      true if enabled.
    • setShowControllerEnable

      public void setShowControllerEnable(boolean showControllerEnable)
      The ShowHideController reacts to several events which causes the Media Controller to show. This methods allows you to enable or disable the hide functionality. It's enabled by default.
      Parameters:
      showControllerEnable - true to enable.
    • setHideControllerEnable

      public void setHideControllerEnable(boolean hideControllerEnable)
      The ShowHideController reacts to several events which causes the Media Controller to hide. This methods allows you to enable or disable the hide functionality. It's enabled by default.
      Parameters:
      hideControllerEnable - true to enable.
    • hide

      public void hide()
      Hides the media controls.
      Specified by:
      hide in interface ShowHideController
      See Also:
    • isShowing

      public boolean isShowing()
      Determines whether or not the media controls are showing.
      Specified by:
      isShowing in interface ShowHideController
      Returns:
      TRUE iff the media controls are showing, false otherwise.
      See Also:
    • setShowHideAnimationStyle

      public void setShowHideAnimationStyle(com.brightcove.player.mediacontroller.BrightcoveMediaController.AnimationStyle value)
      Sets the animation style.
      Parameters:
      value - The new animation style.
    • setShowHideTimeout

      public void setShowHideTimeout(int value)
      Sets the animation timeout.
      Parameters:
      value - The new animation timeout, in milliseconds.
    • getShowHideTimeout

      public int getShowHideTimeout()
      Gets the animation timeout.
      Returns:
      The animation timeout, in milliseconds.
    • setBrightcoveControlBar

      public void setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
      Sets the Brightcove control bar.
      Parameters:
      brightcoveControlBar - the Brightcove control bar
    • show

      public void show()
      Shows the media controls.
      Specified by:
      show in interface ShowHideController
      See Also: