setKeepCaptionsWithinVideoBounds

open fun setKeepCaptionsWithinVideoBounds(keepCaptionsWithinVideoBounds: Boolean)

The default behaviour of the BrightcoveClosedCaptioningView is to restrict the caption positioning to be within the bounds of the actual video, not the VideoView. By setting this, the developer can decide whether to render the captions outside the video, e.g. in the case of a player that is 16:9 but is viewing a 2.35:1 video.

Parameters

keepCaptionsWithinVideoBounds

if true, always render the captions within the video bounds. If false, allow captions to be rendered in the letterboxing (the area outside the video itself, but within the VideoView).