Class BrightcoveShowHideController

    • Constructor Detail

      • 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 Detail

      • 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.
      • 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