BrightcoveMediaController

The default Brightcove media controller patterned on the Brightcove Web Player.

The media controller provides a container for managing the large play button and the media controls (including control bar, seekbar and the defined set of media control buttons and views) as well as managing the activity lifecycle for these controls.

Constructors

Link copied to clipboard
constructor(videoView: BaseVideoView)
Builds a default media controller for a given video view.
constructor(videoView: BaseVideoView, layout: Int)
Builds a media controller for a given video view and layout.

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 CONTROL_BAR_CREATED: String = "controlBarCreated"
The event type emitted by the Brightcove media controller that provides for customization.
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 DEFAULT_TIMEOUT: Int = 3000
The default show/hide timeout value, in milliseconds.
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 DURATION: String = "duration"
The event payload key for the duration time text value.
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
Link copied to clipboard
boolean set on the constructor to check if we are on TV mode
Link copied to clipboard
val MARKER_LIST: String = "markerList"
The event property key specifying the playhead positions at which markers should be placed.
Link copied to clipboard
The registry that maintains button controllers.
Link copied to clipboard
val PROGRESS: String = "progress"
The event payload key for the current time text value.
Link copied to clipboard
val SEEK_BAR_MAX: String = "seekBarMax"
The event property key for saving and restoring the seek bar max value.
Link copied to clipboard
val SEEK_BAR_PROGRESS: String = "seekBarProgress"
The event property key for saving and restoring the seek bar progress value.
Link copied to clipboard
val SET_MARKERS: String = "setMarkers"
Standard event type for supplying markers to the seek bar.
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.

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
open fun checkTvMode(context: Context): Boolean
Link copied to clipboard
open fun disableSeeking(disable: Boolean)
Disables or enables the BrightcoveControlBar of allowing seeking
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent): Boolean
Dispatch the key event.
Link copied to clipboard
Obtains the current control bar.
Link copied to clipboard
Obtains the current seek bar.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
open fun getSeekBarOffset(): Int
Deprecated.
Link copied to clipboard
Gets the live fixed sliding window offset.
Link copied to clipboard
open fun hide()
Hides the media controls.
Link copied to clipboard
open fun isDragging(): Boolean
Obtains the dragging state.
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
Request focus for the play button if videoView is in TV mode
Link copied to clipboard
Set the enable/disable state that allows (enabled) or prevents (disabled) ad markers being set automatically whenever a cue point has been set.
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 setShowHideTimeout(value: Int)
Sets the animation timeout.
Link copied to clipboard
open fun show()
Shows the media controls.