SeekButtonController
Provides an abstract class that allows a subclass to either seek back or seek forward. You are required to implemented both, the computeTargetSeekPosition and the getDidSeekHandler
Author
Sergio Martinez - smartinez@brightcove.com
Inheritors
Constructors
Link copied to clipboard
constructor(context: Context, videoView: BaseVideoView, controlBar: View, id: Int, font: Typeface, eventType: String)
Builds a button controller to handle the rewind button.
Properties
Functions
Link copied to clipboard
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
Implements a getter for the SDK event emitter.
Link copied to clipboard
Implements a getter for the managed state.
Link copied to clipboard
Gets the on hold update frequency time in milliseconds, used to send the SEEKBAR_DRAGGING_PROGRESS event to update the Media Controller seek bar.
Link copied to clipboard
Gets the on hold button wait time, which is the time in milliseconds to be waited, so that the key event is considered a long press instead of a regular press.
Link copied to clipboard
Implements a getter to add the current playhead position to the payload when emitting a rewind event.
Link copied to clipboard
Deprecated.
Link copied to clipboard
Gets default seek time.
Link copied to clipboard
Gets the seek percentage relative to video duration, used to set the seekDefaultLong The values are greater than 0 and lower than 100
Link copied to clipboard
Gets the button state list providing information about the states associated with a button face.
Link copied to clipboard
Gets the current visibility state.
Link copied to clipboard
If enabled, the seekDefaultLong will be set relative to the video duration and the seekPercentage.
Link copied to clipboard
Called back on change in the accessibility state.
Link copied to clipboard
On dpad center key actioned
Link copied to clipboard
On dpad down key actioned
Link copied to clipboard
On dpad left key actioned
Link copied to clipboard
On dpad right key actioned
Link copied to clipboard
On fast forward key actioned
Link copied to clipboard
On play pause key actioned
Link copied to clipboard
On skip backward key actioned
Link copied to clipboard
On skip forward key actioned
Link copied to clipboard
Removes the specified listener from the EventEmitter.
Link copied to clipboard
Removes all set listeners from the EventEmitter.
Link copied to clipboard
Sets the on hold update frequency time in milliseconds, used to send the SEEKBAR_DRAGGING_PROGRESS event to update the Media Controller seek bar.
Link copied to clipboard
Sets the on hold button wait time, which is the time in milliseconds to be waited, so that the key event is considered a long press instead of a regular press.
Link copied to clipboard
Deprecated.
Sets the default seek time.
Link copied to clipboard
Sets the seek percentage relative to video duration, used to set the seekDefaultLong The values are greater than 0 and lower than 100
Link copied to clipboard
Enable or disable relative seeking.
Link copied to clipboard
Sets the button visibility.
Link copied to clipboard
Implements to update a state (toggle) button to display the correct glyph and content description for the current managed state value.