Class: YouTubeHandler

wp. YouTubeHandler


new YouTubeHandler()

YouTube video handler.
Source:

Methods


isPaused()

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

loadVideo()

Load a YouTube video.
Source:

pause()

Pause the video.
Source:

play()

Play the video.
Source:

ready()

Set up a YouTube iframe. Loads the YouTube IFrame API if the 'YT' global doesn't exist.
Source:

test(settings)

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