-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
,com.brightcove.player.mediacontroller.ShowHideController
@Emits(events = {})@ListensFor(events = {}) public class BrightcoveShowHideController extends AbstractComponent implements ShowHideController
Abstracts the show/hide operations.
-
-
Field Summary
Fields Modifier and Type Field Description private int
showHideTimeout
private boolean
showControllerEnable
private boolean
hideControllerEnable
-
Constructor Summary
Constructors Constructor Description BrightcoveShowHideController(BrightcoveControlBar controlBar, BaseVideoView videoView)
Builds the show/hide controller.
-
Method Summary
Modifier and Type Method Description int
getShowHideTimeout()
Gets the animation timeout. void
setShowHideTimeout(int value)
Sets the animation timeout. 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. 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. boolean
isShowControllerEnable()
It indicates whether the hide mechanism of the ShowHideController is enable or disable.It's enabled by default. boolean
isHideControllerEnable()
It indicates whether the hide mechanism of the ShowHideController is enable or disable.It's enabled by default. void
hide()
Hides the media controls. boolean
isShowing()
Determines whether or not the media controls are showing. void
setShowHideAnimationStyle(BrightcoveMediaController.AnimationStyle value)
Sets the animation style. void
setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
Sets the Brightcove control bar. void
show()
Shows the media controls. -
-
Constructor Detail
-
BrightcoveShowHideController
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
-
getShowHideTimeout
int getShowHideTimeout()
Gets the animation timeout.
-
setShowHideTimeout
void setShowHideTimeout(int value)
Sets the animation timeout.
- Parameters:
value
- The new animation timeout, in milliseconds.
-
setShowControllerEnable
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
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.
-
isShowControllerEnable
boolean isShowControllerEnable()
It indicates whether the hide mechanism of the ShowHideController is enable or disable.It's enabled by default.
-
isHideControllerEnable
boolean isHideControllerEnable()
It indicates whether the hide mechanism of the ShowHideController is enable or disable.It's enabled by default.
-
hide
void hide()
Hides the media controls.
-
isShowing
boolean isShowing()
Determines whether or not the media controls are showing.
-
setShowHideAnimationStyle
void setShowHideAnimationStyle(BrightcoveMediaController.AnimationStyle value)
Sets the animation style.
- Parameters:
value
- The new animation style.
-
setBrightcoveControlBar
void setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
Sets the Brightcove control bar.
- Parameters:
brightcoveControlBar
- the Brightcove control bar
-
show
void show()
Shows the media controls.
-
-
-
-