Method Summary
Public Methods | ||
public |
Builds the default DOM |
|
public |
disable() Disable the |
|
public |
enable() Enable the |
|
public |
handleClick(event: EventTarget~Event) This gets called when the button is clicked. |
|
public |
onStart(event: EventTarget~Event) Add the vjs-icon-record-stop class to the element so it can change appearance. |
|
public |
onStop(event: EventTarget~Event) Add the vjs-icon-record-start class to the element so it can change appearance. |
|
public |
show() Show the |
Public Methods
public handleClick(event: EventTarget~Event) source
This gets called when the button is clicked.
Params:
Name | Type | Attribute | Description |
event | EventTarget~Event | The |
Listen:
* |
tap |
* |
click |
public onStart(event: EventTarget~Event) source
Add the vjs-icon-record-stop class to the element so it can change appearance.
Params:
Name | Type | Attribute | Description |
event | EventTarget~Event |
|
The event that caused this function to run. |
Listen:
* |
Player#startRecord |
public onStop(event: EventTarget~Event) source
Add the vjs-icon-record-start class to the element so it can change appearance.
Params:
Name | Type | Attribute | Description |
event | EventTarget~Event |
|
The event that caused this function to run. |
Listen:
* |
Player#stopRecord |
public show() source
Show the RecordToggle
element if it is hidden by removing the
'vjs-hidden' class name from it.