Class: BitmapSubtitleContainer

BitmapSubtitleContainer(player, optionsopt)

Bitmap subtitle container component

Constructor

new BitmapSubtitleContainer(player, optionsopt)

Bitmap subtitle wrapper component
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-container' component name
Source:

Methods

buildDynamicStyle() → {Object}

Create dynamic styles for each plugin instance. Make it unique with helps of ${player.id}
Source:
Returns:
- unique DOM style element
Type
Object

createEl() → {DOM}

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

scaleTo(value)

Adjust bitmap subtitle container size against ${player.textTrackDisplay} on player resize event
Parameters:
Name Type Description
value number scale value
Source:

setBitmapVariation(variation)

Set bitmap subtitle container class name attribute, against bitmap subtitle variation, pgssub or vobsub.
Parameters:
Name Type Description
variation string "pgssub" or "vobsub"
Source: