public class FastForwardButtonController extends SeekButtonController
SeekButtonController.HideSeekControlsHandler, SeekButtonController.OnHoldHandler, SeekButtonController.SeekConfigurationHandler, SeekButtonController.SeekHandler, SeekButtonController.SeekOffsetHandler, SeekButtonController.ShowSeekControlsHandler
AbstractButtonController.Visibility
DEFAULT_ON_HOLD_START_TIME, DEFAULT_ON_HOLD_UPDATE_FREQUENCY, DEFAULT_SEEK_PERCENTAGE, LIVE_OFFSET, onHoldHandler, onHoldUpdateFrequency, onHoldWaitTime, seekDefault, seekPercentage, seekRelativeEnabled, seekStartPosition, seekTargetPosition
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
eventEmitter, listenerTokens
Constructor and Description |
---|
FastForwardButtonController(android.content.Context context,
BaseVideoView videoView,
BrightcoveControlBar controlBar,
android.graphics.Typeface font)
Builds a complete controller.
|
Modifier and Type | Method and Description |
---|---|
protected int |
computeTargetSeekPosition(int seekStartPosition,
int offset)
Compute the target seek position based on the seekStartPosition and an offset.
|
EventListener |
getDidSeekHandler()
Gets the EventListener callback to trigger when the DID_SEEK_TO event is received.
|
boolean |
onFastForward(android.view.KeyEvent event)
On fast forward key actioned
|
getManagedState, getOnHoldUpdateFrequency, getOnHoldWaitTime, getProperties, getSeekDefault, getSeekPercentage, getVisibilityState, handleSeekEvent, isSeekRelativeEnabled, onDpadCenter, setOnHoldUpdateFrequency, setOnHoldWaitTime, setSeekDefault, setSeekPercentage, setSeekRelativeEnabled
getButton, getEventEmitter, getFont, getId, getStateList, onAccessibilityStateChanged, onBack, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onHome, onMenu, onPause, onPlay, onPlayPause, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStates
addListener, addOnceListener, removeListener, removeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeListeners
public FastForwardButtonController(android.content.Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, android.graphics.Typeface font)
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
- protected int computeTargetSeekPosition(int seekStartPosition, int offset)
SeekButtonController
SeekButtonController.setSeekDefault(int)
The default offset for a Live video is SeekButtonController.LIVE_OFFSET
computeTargetSeekPosition
in class SeekButtonController
seekStartPosition
- the seek start positionoffset
- the amount of time in milliseconds to seek.SeekButtonController.setSeekDefault(int)
public EventListener getDidSeekHandler()
SeekButtonController
getDidSeekHandler
in class SeekButtonController
public boolean onFastForward(android.view.KeyEvent event)
RemoteControlKeyState
onFastForward
in interface RemoteControlKeyState
onFastForward
in class AbstractButtonController
event
- the android.view.KeyEvent