BrightcoveShowHideController

Abstracts the show/hide operations.

Author

Paul Michael Reilly --- @pmreilly@brightcove.com

Constructors

Link copied to clipboard
constructor(controlBar: BrightcoveControlBar, videoView: BaseVideoView)
Builds the show/hide controller.

Properties

Link copied to clipboard
Use a fading animation style whereby ...
Link copied to clipboard
Use a sliding animation style whereby ...
Link copied to clipboard
val CONTROLS_HEIGHT: String = "controlsHeight"
The name for the DID_SHOW_MEDIA_CONTROLS event's controls height property.
Link copied to clipboard
val DID_HIDE_MEDIA_CONTROLS: String = "didHideMediaControls"
Standard event type used to notify an app that media controls are hidden.
Link copied to clipboard
val DID_SHOW_MEDIA_CONTROLS: String = "didShowMediaControls"
Standard event type used to notify an app that media controls are showing.
Link copied to clipboard
val HIDE_MEDIA_CONTROLS: String = "hideMediaControls"
Standard event type used to emit and listen for hiding media controls.
Link copied to clipboard
val SHOW_HIDE_ANIMATION_STYLE: String = "showHideAnimationStyle"
Event property key selecting an animation style, a String constant.
Link copied to clipboard
val SHOW_HIDE_RESOURCES: String = "showHideResources"
Event property key specifying the Android resource identifiers to either show or hide.
Link copied to clipboard
val SHOW_HIDE_TIMEOUT: String = "showHideTimeout"
Event property key specifying delay (in milliseconds, default is three seconds) from showing to hiding the media controls.
Link copied to clipboard
val SHOW_MEDIA_CONTROLS: String = "showMediaControls"
Standard event type used to emit and listen for showing media controls.
Link copied to clipboard
The show/hide timeout value, in milliseconds.

Functions

Link copied to clipboard
open fun addListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
open fun addOnceListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
open fun hide()
Hides the media controls.
Link copied to clipboard
It indicates whether the hide mechanism of the ShowHideController is enable or disable.
Link copied to clipboard
It indicates whether the hide mechanism of the ShowHideController is enable or disable.
Link copied to clipboard
open fun isShowing(): Boolean
Determines whether or not the media controls are showing.
Link copied to clipboard
open fun removeListener(eventType: String)
Removes the specified listener from the EventEmitter.
Link copied to clipboard
open fun removeListeners()
Removes all set listeners from the EventEmitter.
Link copied to clipboard
open fun setBrightcoveControlBar(brightcoveControlBar: BrightcoveControlBar)
Sets the Brightcove control bar.
Link copied to clipboard
open fun setHideControllerEnable(hideControllerEnable: Boolean)
The ShowHideController reacts to several events which causes the Media Controller to hide.
Link copied to clipboard
open fun setShowControllerEnable(showControllerEnable: Boolean)
The ShowHideController reacts to several events which causes the Media Controller to show.
Link copied to clipboard
open fun setShowHideAnimationStyle(value: BrightcoveMediaController.AnimationStyle)
Sets the animation style.
Link copied to clipboard
open fun show()
Shows the media controls.