@Emits(events={"didShowMediaControls","didHideMediaControls"}) @ListensFor(events={"showMediaControls","hideMediaControls","enterFullScreen","exitFullScreen","didEnterFullScreen","didExitFullScreen"}) public class BrightcoveShowHideController extends AbstractComponent implements ShowHideController
eventEmitter, listenerTokens
ANIMATION_STYLE_FADE, ANIMATION_STYLE_SLIDE, CONTROLS_HEIGHT, DID_HIDE_MEDIA_CONTROLS, DID_SHOW_MEDIA_CONTROLS, HIDE_MEDIA_CONTROLS, SHOW_HIDE_ANIMATION_STYLE, SHOW_HIDE_RESOURCES, SHOW_HIDE_TIMEOUT, SHOW_MEDIA_CONTROLS
Constructor and Description |
---|
BrightcoveShowHideController(BrightcoveControlBar controlBar,
BaseVideoView videoView)
Builds the show/hide controller.
|
Modifier and Type | Method and Description |
---|---|
int |
getShowHideTimeout()
Gets the animation timeout.
|
void |
hide()
Hides the media controls.
|
boolean |
isHideControllerEnable()
It indicates whether the hide mechanism of the ShowHideController is enable or disable.
|
boolean |
isShowControllerEnable()
It indicates whether the hide mechanism of the ShowHideController is enable or disable.
|
boolean |
isShowing()
Determines whether or not the media controls are showing.
|
void |
setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
Sets the Brightcove control bar.
|
void |
setHideControllerEnable(boolean hideControllerEnable)
The ShowHideController reacts to several events which causes the Media Controller to hide.
|
void |
setShowControllerEnable(boolean showControllerEnable)
The ShowHideController reacts to several events which causes the Media Controller to show.
|
void |
setShowHideAnimationStyle(com.brightcove.player.mediacontroller.BrightcoveMediaController.AnimationStyle value)
Sets the animation style.
|
void |
setShowHideTimeout(int value)
Sets the animation timeout.
|
void |
show()
Shows the media controls.
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public BrightcoveShowHideController(BrightcoveControlBar controlBar, BaseVideoView videoView)
controlBar
- The control bar object being shown and hidden.videoView
- The SDK base video view.public boolean isShowControllerEnable()
public boolean isHideControllerEnable()
public void setShowControllerEnable(boolean showControllerEnable)
showControllerEnable
- true to enable.public void setHideControllerEnable(boolean hideControllerEnable)
hideControllerEnable
- true to enable.public void hide()
hide
in interface ShowHideController
ShowHideController.hide()
public boolean isShowing()
isShowing
in interface ShowHideController
TRUE
iff the media controls are showing, false otherwise.ShowHideController.isShowing()
public void setShowHideAnimationStyle(com.brightcove.player.mediacontroller.BrightcoveMediaController.AnimationStyle value)
value
- The new animation style.public void setShowHideTimeout(int value)
value
- The new animation timeout, in milliseconds.public int getShowHideTimeout()
public void setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
brightcoveControlBar
- the Brightcove control barpublic void show()
show
in interface ShowHideController
ShowHideController.show()