@ListensFor(events={"activityResumed","audioTracks","audioTracksDialogOk","audioTracksDialogSettings","fragmentResumed","enterTvMode","willChangeVideo"}) public class AudioTracksButtonController 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 |
---|
AudioTracksButtonController(android.content.Context context,
BaseVideoView videoView,
BrightcoveControlBar controlBar,
android.graphics.Typeface font,
android.os.Bundle bundle)
DefaultMediaController requires a reference to the Context for resource lookups and
toggling full-screen mode.
|
Modifier and Type | Method and Description |
---|---|
int |
getManagedState()
Implements a getter for the managed state.
|
int |
getVisibilityState()
Gets the current visibility state.
|
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 AudioTracksButtonController(android.content.Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, android.graphics.Typeface font, android.os.Bundle bundle)
context
- The Android application context.videoView
- The base video view with the captions button.controlBar
- The caption button's parent view.font
- The, possibly null, typeface for the button.bundle
- The, possibly null, state save information generated on an Activity lifecycle or configuration change event.public int getManagedState()
ButtonController.getManagedState()
public int getVisibilityState()
getVisibilityState
in interface ButtonController
getVisibilityState
in class AbstractButtonController
ButtonController.getVisibilityState()