public class LiveButtonController extends AbstractButtonController
AbstractButtonController.Visibility
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LIVE_EDGE_STATE |
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 |
---|
LiveButtonController(android.content.Context context,
BaseVideoView videoView,
android.view.View controlBar,
android.graphics.Typeface font,
android.os.Bundle bundle)
Builds a button controller to handle the live button, handling things like setting the foreground color to
provide the user with an indication that the video is showing either live video or recorded video, returning to
showing live video, handling initial play, etc.
|
Modifier and Type | Method and Description |
---|---|
int |
getManagedState()
Implements a getter for the managed state.
|
int |
getVisibilityState()
Gets the current visibility state.
|
boolean |
isLiveEdgeState() |
getButton, getEventEmitter, getFont, getId, getProperties, getStateList, onAccessibilityStateChanged, onBack, onDpadCenter, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onFastForward, 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 static final java.lang.String LIVE_EDGE_STATE
public LiveButtonController(android.content.Context context, BaseVideoView videoView, android.view.View controlBar, android.graphics.Typeface font, android.os.Bundle bundle)
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.public boolean isLiveEdgeState()
public int getManagedState()
ButtonController.getManagedState()
public int getVisibilityState()
getVisibilityState
in interface ButtonController
getVisibilityState
in class AbstractButtonController
ButtonController.getVisibilityState()