-
- All Implemented Interfaces:
-
com.brightcove.player.accessibility.AccessibilityListener
,com.brightcove.player.event.Component
,com.brightcove.player.mediacontroller.buttons.ButtonController
,com.brightcove.player.mediacontroller.buttons.RemoteControlKeyState
@ListensFor(events = {EventType.ACTIVITY_RESUMED, EventType.CAPTIONS_DIALOG_OK, EventType.CAPTIONS_DIALOG_SETTINGS, EventType.FRAGMENT_RESUMED, EventType.ENTER_TV_MODE, EventType.WILL_CHANGE_VIDEO}) public class CaptionsButtonController extends AbstractButtonController
The default Brightcove captions button controller.
-
-
Constructor Summary
Constructors Constructor Description CaptionsButtonController(Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, Typeface font, Bundle bundle)
DefaultMediaController requires a reference to the Context for resource lookups andtoggling full-screen mode.
-
Method Summary
Modifier and Type Method Description int
getManagedState()
Implements a getter for the managed state. int
getVisibilityState()
Gets the current visibility state. -
Methods inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController
getButton, getEventEmitter, getFont, getId, getProperties, getStateList, onAccessibilityStateChanged, onBack, onDpadCenter, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onFastForward, onHome, onMenu, onPause, onPlay, onPlayPause, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStates
-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, removeListener, removeListeners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CaptionsButtonController
CaptionsButtonController(Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, Typeface font, Bundle bundle)
DefaultMediaController requires a reference to the Context for resource lookups andtoggling full-screen mode.- Parameters:
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.
-
-
Method Detail
-
getManagedState
int getManagedState()
Implements a getter for the managed state.
-
getVisibilityState
int getVisibilityState()
Gets the current visibility state. For captions, the button is visible when captions are available. Captionsavailability is propagated via the SDK event bus.
-
-
-
-