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 |
---|---|
void |
hide()
Hides the media controls.
|
boolean |
isShowing()
Determines whether or not the media controls are showing.
|
void |
setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
Sets the Brightcove control bar.
|
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 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 void setBrightcoveControlBar(BrightcoveControlBar brightcoveControlBar)
brightcoveControlBar
- the Brightcove control barpublic void show()
show
in interface ShowHideController
ShowHideController.show()