new BaseHandler()
Create a video handler instance.
Methods
-
initialize(settings)
-
Initialize the video handler.
Parameters:
Name Type Description settingsobject Video settings. -
<abstract> isPaused()
-
Whether the video is paused.
Returns:
- Type
- boolean
-
<abstract> pause()
-
Pause the video.
-
<abstract> play()
-
Play the video.
-
<abstract> ready()
-
Ready method called after a handler is initialized.
-
setVideo(node)
-
Append a video node to the header container.
Parameters:
Name Type Description nodeElement HTML element. -
showControls()
-
Show the video controls. Appends a play/pause button to header container.
-
<abstract> test(settings)
-
Whether the handler can process a video.
Parameters:
Name Type Description settingsobject Video settings. Returns:
- Type
- boolean
-
trigger(name)
-
Trigger an event on the header container.
Parameters:
Name Type Description namestring Event name.