Class FastForwardButtonController
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.player.mediacontroller.buttons.AbstractButtonController
com.brightcove.player.mediacontroller.buttons.SeekButtonController
com.brightcove.player.mediacontroller.buttons.FastForwardButtonController
- All Implemented Interfaces:
AccessibilityListener
,Component
,ButtonController
,RemoteControlKeyState
The default Brightcove Fast forward controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.brightcove.player.mediacontroller.buttons.SeekButtonController
SeekButtonController.HideSeekControlsHandler, SeekButtonController.OnHoldHandler, SeekButtonController.SeekConfigurationHandler, SeekButtonController.SeekHandler, SeekButtonController.SeekOffsetHandler, SeekButtonController.ShowSeekControlsHandler
Nested classes/interfaces inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController
AbstractButtonController.Visibility
-
Field Summary
Fields inherited from class com.brightcove.player.mediacontroller.buttons.SeekButtonController
DEFAULT_ON_HOLD_START_TIME, DEFAULT_ON_HOLD_UPDATE_FREQUENCY, DEFAULT_SEEK_PERCENTAGE, LIVE_OFFSET, onHoldHandler, onHoldUpdateFrequency, onHoldWaitTime, seekDefault, seekDefaultLong, seekPercentage, seekRelativeEnabled, seekStartPosition, seekStartPositionLong, seekTargetPosition, seekTargetPositionLong
Fields inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController
DEFAULT_AUDIO_TRACKS_BUTTON_ID, DEFAULT_CAPTIONS_BUTTON_ID, DEFAULT_FAST_FORWARD_BUTTON_ID, DEFAULT_FULL_SCREEN_BUTTON_ID, DEFAULT_LIVE_BUTTON_ID, DEFAULT_PLAY_BUTTON_ID, DEFAULT_REWIND_BUTTON_ID, DEFAULT_SEEK_BUTTON_ID, properties, stateList, videoView
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
ConstructorDescriptionFastForwardButtonController
(android.content.Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, android.graphics.Typeface font) Builds a complete controller. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
computeTargetSeekPosition
(int seekStartPosition, int offset) Compute the target seek position based on the seekStartPosition and an offset.protected long
computeTargetSeekPosition
(long seekStartPosition, long offset) Compute the target seek position based on the seekStartPosition and an offset.Gets the EventListener callback to trigger when the DID_SEEK_TO event is received.boolean
onFastForward
(android.view.KeyEvent event) On fast forward key actionedMethods inherited from class com.brightcove.player.mediacontroller.buttons.SeekButtonController
getManagedState, getOnHoldUpdateFrequency, getOnHoldWaitTime, getProperties, getSeekDefault, getSeekDefaultLong, getSeekPercentage, getVisibilityState, handleSeekEvent, isSeekRelativeEnabled, onDpadCenter, setOnHoldUpdateFrequency, setOnHoldWaitTime, setSeekDefault, setSeekDefault, setSeekPercentage, setSeekRelativeEnabled
Methods inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController
getButton, getEventEmitter, getFont, getId, getStateList, onAccessibilityStateChanged, onBack, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onHome, onMenu, onPause, onPlay, onPlayPause, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStates
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, removeListener, removeListeners
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.brightcove.player.mediacontroller.buttons.ButtonController
removeListeners
-
Constructor Details
-
FastForwardButtonController
public FastForwardButtonController(android.content.Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, android.graphics.Typeface font) Builds a complete controller.- Parameters:
context
- The given Android application context.videoView
- The SDK video view used, possibly, to determine managed state asssociated with the button.controlBar
- The layout widget to which the button will be added.font
-
-
-
Method Details
-
computeTargetSeekPosition
protected int computeTargetSeekPosition(int seekStartPosition, int offset) Description copied from class:SeekButtonController
Compute the target seek position based on the seekStartPosition and an offset. The offset can be overridden by calling theSeekButtonController.setSeekDefault(long)
The default offset for a Live video isSeekButtonController.LIVE_OFFSET
- Specified by:
computeTargetSeekPosition
in classSeekButtonController
- Parameters:
seekStartPosition
- the seek start positionoffset
- the amount of time in milliseconds to seek.- Returns:
- the int position in the video to seek to.
- See Also:
-
computeTargetSeekPosition
protected long computeTargetSeekPosition(long seekStartPosition, long offset) Description copied from class:SeekButtonController
Compute the target seek position based on the seekStartPosition and an offset. The offset can be overridden by calling theSeekButtonController.setSeekDefault(long)
The default offset for a Live video isSeekButtonController.LIVE_OFFSET
- Specified by:
computeTargetSeekPosition
in classSeekButtonController
- Parameters:
seekStartPosition
- the seek start positionoffset
- the amount of time in milliseconds to seek.- Returns:
- the int position in the video to seek to.
- See Also:
-
getDidSeekHandler
Description copied from class:SeekButtonController
Gets the EventListener callback to trigger when the DID_SEEK_TO event is received.- Specified by:
getDidSeekHandler
in classSeekButtonController
- Returns:
- EventListener who listens for DID_SEEK_TO
-
onFastForward
public boolean onFastForward(android.view.KeyEvent event) Description copied from interface:RemoteControlKeyState
On fast forward key actioned- Specified by:
onFastForward
in interfaceRemoteControlKeyState
- Overrides:
onFastForward
in classAbstractButtonController
- Parameters:
event
- the android.view.KeyEvent- Returns:
- true if the key event was handled, false otherwies.
-