public class RewindButtonController 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 |
---|
RewindButtonController(android.content.Context context,
BaseVideoView videoView,
BrightcoveControlBar controlBar,
android.graphics.Typeface font)
Builds a button controller to handle the rewind button.
|
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 |
onRewind(android.view.KeyEvent event)
On rewind 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, onFastForward, onHome, onMenu, onPause, onPlay, onPlayPause, onSkipBackward, onSkipForward, setVisibility, syncStates
addListener, addOnceListener, removeListener, removeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeListeners
public RewindButtonController(android.content.Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, android.graphics.Typeface font)
context
- The Android application context.videoView
- The SDK video view object parenting the control bar.controlBar
- The button widget parent view.font
- The, possibly null, typeface for the button.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 onRewind(android.view.KeyEvent event)
RemoteControlKeyState
onRewind
in interface RemoteControlKeyState
onRewind
in class AbstractButtonController
event
- the android.view.KeyEvent