Class: BaseHandler

wp. BaseHandler


new BaseHandler()

Create a video handler instance.
Source:

Methods


initialize(settings)

Initialize the video handler.
Parameters:
Name Type Description
settings object Video settings.
Source:

<abstract> isPaused()

Whether the video is paused.
Source:
Returns:
Type
boolean

<abstract> pause()

Pause the video.
Source:

<abstract> play()

Play the video.
Source:

<abstract> ready()

Ready method called after a handler is initialized.
Source:

setVideo(node)

Append a video node to the header container.
Parameters:
Name Type Description
node Element HTML element.
Source:

showControls()

Show the video controls. Appends a play/pause button to header container.
Source:

<abstract> test(settings)

Whether the handler can process a video.
Parameters:
Name Type Description
settings object Video settings.
Source:
Returns:
Type
boolean

trigger(name)

Trigger an event on the header container.
Parameters:
Name Type Description
name string Event name.
Source: