Constructor
new BitmapMenuButton(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-menu-button' | component name |
Methods
createItems() → {Array.<menuItem>}
Bitmap Subtitle Menu Builder,
must return a array of menuItem.
Returns:
- menu items
- Type
- Array.<menuItem>
deselectItems()
Deselect menu item from bitmap menu
selectItem(item)
Select a menu item from bitmap menu
Parameters:
| Name | Type | Description |
|---|---|---|
item |
Object | item object bitmapTextTrackMenuItem |