Option name | Type | Description |
---|---|---|
selector | domelement_or_querystring_or_jqueryobject | The element containing the .js-player or .player element within which the video will be created |
options | object | Object containing the settings for this video player. See NATION.video.BasicYouTubePlayer for a full list |
controlsOptions | object | Object containing the settings for the MediaControls. See NATION.MediaControls for a full list |
NATION.Utils
NATION.EventDispatcher
NATION.video.BasicYouTubePlayer
NATION.MediaControls
NATION.ProgressBar
A shortcut to creating a YouTube player with custom controls
This class is a working example of combining BasicYouTubePlayer and MediaControls. If additional functionality is required, it is best to do this yourself, but for many use-cases this class provides the required functionality.
As this class is a subclass of NATION.video.BasicYouTubePlayer, it fires all the same events, and has all the same methods