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 |
Methods
createEl() → {DOM}
Create bitmap subtitle container DOM parts
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}
setVideoSize()
Save current video size into this.videoSize
{width:int , height: int and ratio:int}
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.