public class PlayButtonController extends AbstractButtonController
AbstractButtonController.VisibilityDEFAULT_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, videoVieweventEmitter, listenerTokens| Constructor and Description |
|---|
PlayButtonController(android.content.Context context,
BaseVideoView videoView,
BrightcoveControlBar controlBar,
android.graphics.Typeface font)
Builds a play button controller object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getManagedState()
Implements a getter for the managed video state.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Implements a getter to obtain properties to emit given the current managed state.
|
boolean |
onPlayPause(android.view.KeyEvent event)
On play pause key actioned
|
getButton, getEventEmitter, getFont, getId, getStateList, getVisibilityState, onBack, onDpadCenter, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onFastForward, onHome, onMenu, onPause, onPlay, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStatesaddListener, addOnceListener, removeListener, removeListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveListenerspublic PlayButtonController(android.content.Context context,
BaseVideoView videoView,
BrightcoveControlBar controlBar,
android.graphics.Typeface font)
context - The Android application context.videoView - the SDK video view object.controlBar - The button widget parent view.font - The, possibly null, typeface for the button.public int getManagedState()
ButtonController.getManagedState()public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface ButtonControllergetProperties in class AbstractButtonControllerButtonController.getProperties()public boolean onPlayPause(android.view.KeyEvent event)
RemoteControlKeyStateonPlayPause in interface RemoteControlKeyStateonPlayPause in class AbstractButtonControllerevent - the android.view.KeyEvent