public class PlayButtonController extends AbstractButtonController
AbstractButtonController.Visibility
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 |
---|
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, onAccessibilityStateChanged, onBack, onDpadCenter, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onFastForward, onHome, onMenu, onPause, onPlay, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStates
addListener, addOnceListener, removeListener, removeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeListeners
public 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 ButtonController
getProperties
in class AbstractButtonController
ButtonController.getProperties()
public boolean onPlayPause(android.view.KeyEvent event)
RemoteControlKeyState
onPlayPause
in interface RemoteControlKeyState
onPlayPause
in class AbstractButtonController
event
- the android.view.KeyEvent