Class: BitmapVideoWindow

BitmapVideoWindow(player, optionsopt)

Bitmap subtitle wrapper component. This component try to follow video boundaries. It helps to positionate bitmap subtitle. Actually does not work with picture-in-picture mode.

Constructor

new BitmapVideoWindow(player, optionsopt)

Bitmap Video Window component constructor
Parameters:
Name Type Attributes Default Description
player Player A Video.js Player instance.
options Object <optional>
{} object of option names and values
option.name string <optional>
'bitmapsub-video-window' component name
Source:

Methods

createEl() → {DOM}

Create bitmap subtitle container DOM parts
Source:
Returns:
container - bitmap subtitle container
Type
DOM

setPlayerSize()

Save player size into this.playerSize. Can be different from videoSize {width:int, height:int, ratio:int}
Source:

setVideoSize()

Save current video size into this.videoSize {width:int , height: int and ratio:int}
Source:

setVideoWindowProperties()

Set Video Window position and size on playerresize event. Compute extra bitmap subtitle bottom padding. This padding is composed of an arbitrary value, and when player is in fullscreen, additionnal black bars, depending on screen and video aspect ratio. Also, at the end of this method, component is considered ready and trigger corresponding event.
Source: