BrightcoveClosedCaptioningView
@ListensFor(events = [EventType.CAPTION, EventType.COMPLETED, EventType.DID_LOAD_CLOSED_CAPTIONS, EventType.PROGRESS, EventType.TOGGLE_CLOSED_CAPTIONS, ShowHideController.DID_SHOW_MEDIA_CONTROLS, ShowHideController.DID_HIDE_MEDIA_CONTROLS, EventType.SELECT_CLOSED_CAPTION_TRACK, EventType.DID_ENTER_PICTURE_IN_PICTURE_MODE, EventType.DID_EXIT_PICTURE_IN_PICTURE_MODE, EventType.SEEKBAR_DRAGGING_START, EventType.SEEKBAR_DRAGGING_STOP, EventType.AD_BREAK_STARTED, EventType.AD_BREAK_COMPLETED] )
This view (a FrameLayout) implements the proper layout and formatting for closed captions for a BaseVideoView. This view is also a component which is responsible for initiating the loading and parsing of captions.
Constructors
Types
Link copied to clipboard
enum ClosedCaptioningMode
Specifies the type of captions being used currently.
Functions
Link copied to clipboard
Retrieves the specific view block containing rendered captions for the given video position in milliseconds, if one exists.
Link copied to clipboard
Link copied to clipboard
Retrieves the current com.brightcove.player.view.BrightcoveClosedCaptioningView.ClosedCaptioningMode.
Link copied to clipboard
Computes the FCC "safe-area margin" height based on the current height of this instance and the SAFE_AREA.
Link copied to clipboard
Computes the FCC "safe-area margin" width based on the current width of this instance and the SAFE_AREA.
Link copied to clipboard
Initializes the CaptionsView with the given EventEmitter.
Initializes the CaptionsView with the given EventEmitter and BaseVideoView.
Link copied to clipboard
Prepares the rendered View blocks for all captions listed in the given TTMLDocument.
Link copied to clipboard
Link copied to clipboard
Prepares the rendered View blocks for all captions listed in the given WebVTTDocument.
Link copied to clipboard
Link copied to clipboard
The default behaviour of the BrightcoveClosedCaptioningView is to restrict the caption positioning to be within the bounds of the actual video, not the VideoView.
Link copied to clipboard
Specifies the CaptionMode for this CaptionsView.
Link copied to clipboard
Optionally override the default SAFE_AREA with a custom percent.