diff --git a/docs/legacy-docs/api/assets/api-doc-template-min.html b/docs/legacy-docs/api/assets/api-doc-template-min.html index f450f07900..862ae26075 100644 --- a/docs/legacy-docs/api/assets/api-doc-template-min.html +++ b/docs/legacy-docs/api/assets/api-doc-template-min.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/legacy-docs/api/assets/api-doc-template.html b/docs/legacy-docs/api/assets/api-doc-template.html index 60a476d43e..88f83a960e 100644 --- a/docs/legacy-docs/api/assets/api-doc-template.html +++ b/docs/legacy-docs/api/assets/api-doc-template.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/legacy-docs/api/assets/create-doc-files.js b/docs/legacy-docs/api/assets/create-doc-files.js index 11b652b6ce..8154a888ae 100644 --- a/docs/legacy-docs/api/assets/create-doc-files.js +++ b/docs/legacy-docs/api/assets/create-doc-files.js @@ -25,7 +25,7 @@ function createFiles(filenameArray) { var i, iMax = filenameArray.length, filename, - contentStr = ' '; + contentStr = ' '; for (i = 0; i < iMax; i++) { filename = filenameArray[i]; // create file with name=filename and contents=contentStr diff --git a/docs/legacy-docs/api/audio-track-button.html b/docs/legacy-docs/api/audio-track-button.html index 376249e4e2..2d78fad515 100644 --- a/docs/legacy-docs/api/audio-track-button.html +++ b/docs/legacy-docs/api/audio-track-button.html @@ -1,6 +1,6 @@ AudioTrackButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

AudioTrackButton Methods

Class Methods

Inherited Methods from MenuButton

Inherited Methods from Button

Inherited Methods from ClickableComponent

Inherited Methods from Component

AudioTrackButton

The base class for buttons that toggle specific text track types (e.g. subtitles)

DEFINED IN: audio-track-button.js line number: 9

EXTENDS: track-button.js

Constructor

AudioTrackButton( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

handleClick()

When you click the button it adds focus, which diff --git a/docs/legacy-docs/api/big-play-button.html b/docs/legacy-docs/api/big-play-button.html index 28619b632c..d1698a2251 100644 --- a/docs/legacy-docs/api/big-play-button.html +++ b/docs/legacy-docs/api/big-play-button.html @@ -1,6 +1,6 @@ BigPlayButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

BigPlayButton

Initial play button. Shows before the video has played. The hiding of the diff --git a/docs/legacy-docs/api/button.html b/docs/legacy-docs/api/button.html index 5d22a28bb5..f1cf6a9d2d 100644 --- a/docs/legacy-docs/api/button.html +++ b/docs/legacy-docs/api/button.html @@ -1,6 +1,6 @@ Button +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Button

Base class for all buttons

DEFINED IN: button.js line number: 12

EXTENDS: clickable-component.js

Constructor

Button( player,[options] )

Parameters

nameTypeRequiredDescription
playerObjectyesMain Player
optionsObjectnoObject of option names and values

Methods

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

createEl( [type], [props], [attributes] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoElement's node type. e.g. 'div'
propsObjectnoAn object of properties that should be set on the element
attributesObjectnoAn object of attributes that should be set on the element

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleClick()

Handle Click - Override with specific functionality for component

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/caption-settings-menu-item.html b/docs/legacy-docs/api/caption-settings-menu-item.html index 5d46e68e06..72fe447e74 100644 --- a/docs/legacy-docs/api/caption-settings-menu-item.html +++ b/docs/legacy-docs/api/caption-settings-menu-item.html @@ -1,6 +1,6 @@ CaptionSettingsMenuItem +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

CaptionSettingsMenuItem

The menu item for caption track settings menu

DEFINED IN: caption-settings-menu-item.js line number: 7

EXTENDS: text-track-menu-item.js

Constructor

CaptionSettingsMenuItem( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

createEl( [type], [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoDesc
propsObjectnoDesc

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34

[back to top]

selected( selected )

Set this menu item as selected or not

Parameters

nameTypeRequiredDescription
selectedBoolean

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/captions-button.html b/docs/legacy-docs/api/captions-button.html index 538ca53a49..be35fa9d47 100644 --- a/docs/legacy-docs/api/captions-button.html +++ b/docs/legacy-docs/api/captions-button.html @@ -1,6 +1,6 @@ CaptionsButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

CaptionsButton

The button component for toggling and selecting captions

DEFINED IN: captions-button.js line number: 8

EXTENDS: text-track-button.js

Constructor

CaptionsButton( player,[options],[ready] )

Parameters

nameTypeRequiredDescription
playerObjectyesPlayer object
optionsObjectnoObject of option names and values
readyfunctionnoReady callback function

Methods

handleClick()

When you click the button it adds focus, which diff --git a/docs/legacy-docs/api/captions-track.html b/docs/legacy-docs/api/captions-track.html index 67725e8da0..142aec3b44 100644 --- a/docs/legacy-docs/api/captions-track.html +++ b/docs/legacy-docs/api/captions-track.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/chapters-button.html b/docs/legacy-docs/api/chapters-button.html index a65f16b195..a37aaef1a2 100644 --- a/docs/legacy-docs/api/chapters-button.html +++ b/docs/legacy-docs/api/chapters-button.html @@ -1,6 +1,6 @@ ChaptersButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ChaptersButton

The button component for toggling and selecting chapters diff --git a/docs/legacy-docs/api/chapters-track-menu-item.html b/docs/legacy-docs/api/chapters-track-menu-item.html index bf9b2c6a14..3c7562c9ea 100644 --- a/docs/legacy-docs/api/chapters-track-menu-item.html +++ b/docs/legacy-docs/api/chapters-track-menu-item.html @@ -1,6 +1,6 @@ ChaptersTrackMenuItem +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ChaptersTrackMenuItem

The chapter track menu item

DEFINED IN: chapters-track-menu-item.js line number: 8

EXTENDS: menu-item.js

Constructor

ChaptersTrackMenuItem( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

createEl( [type], [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoDesc
propsObjectnoDesc

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34

[back to top]

selected( selected )

Set this menu item as selected or not

Parameters

nameTypeRequiredDescription
selectedBoolean

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/chapters-track.html b/docs/legacy-docs/api/chapters-track.html index 67725e8da0..142aec3b44 100644 --- a/docs/legacy-docs/api/chapters-track.html +++ b/docs/legacy-docs/api/chapters-track.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/clickable-component.html b/docs/legacy-docs/api/clickable-component.html index 5d947017be..7d30fd8193 100644 --- a/docs/legacy-docs/api/clickable-component.html +++ b/docs/legacy-docs/api/clickable-component.html @@ -1,6 +1,6 @@ ClickableComponent +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ClickableComponent

Clickable Component which is clickable or keyboard actionable, but is not a native HTML button

DEFINED IN: clickable-component.js line number: 12

EXTENDS: component.js

Constructor

ClickableComponent( player,[options] )

Parameters

nameTypeRequiredDescription
playerObjectyesMain Player
optionsObjectnoObject of option names and values

Methods

addChild( child, [options] )

Adds a child component inside this clickable-component

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 112

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

createEl( [type], [props], [attributes] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoElement's node type. e.g. 'div'
propsObjectnoAn object of properties that should be set on the element
attributesObjectnoAn object of attributes that should be set on the element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 33

[back to top]

handleClick()

Handle Click - Override with specific functionality for component

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 148

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/close-button.html b/docs/legacy-docs/api/close-button.html index d3ce7bcd5a..132aee657a 100644 --- a/docs/legacy-docs/api/close-button.html +++ b/docs/legacy-docs/api/close-button.html @@ -1,6 +1,6 @@ CloseButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

CloseButton

The CloseButton component is a button which fires a "close" event diff --git a/docs/legacy-docs/api/component.html b/docs/legacy-docs/api/component.html index 0287409896..28a6c784fe 100644 --- a/docs/legacy-docs/api/component.html +++ b/docs/legacy-docs/api/component.html @@ -1,6 +1,6 @@ Component +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Component

Base UI Component class diff --git a/docs/legacy-docs/api/control-bar.html b/docs/legacy-docs/api/control-bar.html index 7eb1192b65..8339c3ea8e 100644 --- a/docs/legacy-docs/api/control-bar.html +++ b/docs/legacy-docs/api/control-bar.html @@ -1,6 +1,6 @@ ControlBar +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ControlBar

Container of main controls

DEFINED IN: control-bar.js line number: 24

EXTENDS: component.js

Constructor

ControlBar()

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/current-time-display.html b/docs/legacy-docs/api/current-time-display.html index ef77f9017a..00c772f165 100644 --- a/docs/legacy-docs/api/current-time-display.html +++ b/docs/legacy-docs/api/current-time-display.html @@ -1,6 +1,6 @@ CurrentTimeDisplay +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

CurrentTimeDisplay

Displays the current time

DEFINED IN: current-time-display.js line number: 8

EXTENDS: component.js

Constructor

CurrentTimeDisplay( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/custom-control-spacer.html b/docs/legacy-docs/api/custom-control-spacer.html index 123b3a605d..e0521aad25 100644 --- a/docs/legacy-docs/api/custom-control-spacer.html +++ b/docs/legacy-docs/api/custom-control-spacer.html @@ -1,6 +1,6 @@ CustomControlSpacer +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

CustomControlSpacer

Spacer specifically meant to be used as an insertion point for new plugins, etc.

DEFINED IN: custom-control-spacer.js line number: 7

EXTENDS: spacer.js

Constructor

CustomControlSpacer()

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/duration-display.html b/docs/legacy-docs/api/duration-display.html index 42dfdf14d4..784e426b4e 100644 --- a/docs/legacy-docs/api/duration-display.html +++ b/docs/legacy-docs/api/duration-display.html @@ -1,6 +1,6 @@ DurationDisplay +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

DurationDisplay

Displays the duration

DEFINED IN: duration-display.js line number: 8

EXTENDS: component.js

Constructor

DurationDisplay( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/error-display.html b/docs/legacy-docs/api/error-display.html index 1a0c86cf59..c4daafe844 100644 --- a/docs/legacy-docs/api/error-display.html +++ b/docs/legacy-docs/api/error-display.html @@ -1,6 +1,6 @@ ErrorDisplay +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ErrorDisplay

Display that an error has occurred making the video unplayable.

DEFINED IN: error-display.js line number: 10

EXTENDS: modal-dialog.js

Constructor

ErrorDisplay()

Methods

buildCSSClass() (deprecated)

Include the old class for backward-compatibility.

diff --git a/docs/legacy-docs/api/flash.html b/docs/legacy-docs/api/flash.html index 5b4914f325..56e843202a 100644 --- a/docs/legacy-docs/api/flash.html +++ b/docs/legacy-docs/api/flash.html @@ -1,6 +1,6 @@ Flash +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Flash

Flash Media Controller - Wrapper for fallback SWF API

DEFINED IN: flash.js line number: 18

EXTENDS: tech.js

Constructor

Flash( [options],[ready] )

Parameters

nameTypeRequiredDescription
optionsObjectnoObject of option names and values
readyfunctionnoReady callback function

Methods

currentTime( [time] )

Get current time

Parameters

nameTypeRequiredDescription
timeNumbernoCurrent time of video

Defined in https://github.com/videojs/video.js/blob/master/src/js/tech/flash.js line number: 203

[back to top]

enterFullScreen()

Request to enter fullscreen diff --git a/docs/legacy-docs/api/fullscreen-toggle.html b/docs/legacy-docs/api/fullscreen-toggle.html index b7f6c4a243..b838a06c64 100644 --- a/docs/legacy-docs/api/fullscreen-toggle.html +++ b/docs/legacy-docs/api/fullscreen-toggle.html @@ -1,6 +1,6 @@ FullscreenToggle +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

FullscreenToggle

Toggle fullscreen video

DEFINED IN: fullscreen-toggle.js line number: 7

EXTENDS: button.js

Constructor

FullscreenToggle()

Methods

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

createEl( [type], [props], [attributes] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoElement's node type. e.g. 'div'
propsObjectnoAn object of properties that should be set on the element
attributesObjectnoAn object of attributes that should be set on the element

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/html-track-element.html b/docs/legacy-docs/api/html-track-element.html index 2f1e94cdf3..954cb2ebdb 100644 --- a/docs/legacy-docs/api/html-track-element.html +++ b/docs/legacy-docs/api/html-track-element.html @@ -1,6 +1,6 @@ HTMLTrackElement +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

HTMLTrackElement

https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement

diff --git a/docs/legacy-docs/api/html5.html b/docs/legacy-docs/api/html5.html index 21271773d4..c95a093123 100644 --- a/docs/legacy-docs/api/html5.html +++ b/docs/legacy-docs/api/html5.html @@ -1,6 +1,6 @@ Html5 +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Html5

HTML5 Media Controller - Wrapper for HTML5 Media API

DEFINED IN: html5.js line number: 18

EXTENDS: tech.js

Constructor

Html5( [options],[ready] )

Parameters

nameTypeRequiredDescription
optionsObjectnoObject of option names and values
readyfunctionnoReady callback function

Methods

addRemoteTextTrack( options )

Creates a remote text track object and returns a html track element

Parameters

nameTypeRequiredDescription
optionsObjectyesThe object should contain values for diff --git a/docs/legacy-docs/api/index.html b/docs/legacy-docs/api/index.html index f2db2b7b72..7df81084fc 100644 --- a/docs/legacy-docs/api/index.html +++ b/docs/legacy-docs/api/index.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/live-display.html b/docs/legacy-docs/api/live-display.html index 4a8f4579e3..1934ede514 100644 --- a/docs/legacy-docs/api/live-display.html +++ b/docs/legacy-docs/api/live-display.html @@ -1,6 +1,6 @@ LiveDisplay +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

LiveDisplay

Displays the live indicator diff --git a/docs/legacy-docs/api/load-progress-bar.html b/docs/legacy-docs/api/load-progress-bar.html index 61c69c62b6..5e80b2fff3 100644 --- a/docs/legacy-docs/api/load-progress-bar.html +++ b/docs/legacy-docs/api/load-progress-bar.html @@ -1,6 +1,6 @@ LoadProgressBar +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

LoadProgressBar

Shows load progress

DEFINED IN: load-progress-bar.js line number: 7

EXTENDS: component.js

Constructor

LoadProgressBar( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/loader.html b/docs/legacy-docs/api/loader.html index f5ac73a178..5146c73ae0 100644 --- a/docs/legacy-docs/api/loader.html +++ b/docs/legacy-docs/api/loader.html @@ -1,6 +1,6 @@ MediaLoader +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

MediaLoader

The Media Loader is the component that decides which playback technology to load diff --git a/docs/legacy-docs/api/loading-spinner.html b/docs/legacy-docs/api/loading-spinner.html index 37c165521a..7f169d53aa 100644 --- a/docs/legacy-docs/api/loading-spinner.html +++ b/docs/legacy-docs/api/loading-spinner.html @@ -1,6 +1,6 @@ LoadingSpinner +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

LoadingSpinner

Loading spinner for waiting events

DEFINED IN: loading-spinner.js line number: 8

EXTENDS: component.js

Constructor

LoadingSpinner()

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/md.html b/docs/legacy-docs/api/md.html index 750a49635c..3f48189f75 100644 --- a/docs/legacy-docs/api/md.html +++ b/docs/legacy-docs/api/md.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/menu-button.html b/docs/legacy-docs/api/menu-button.html index 6e1827daee..2b0630d347 100644 --- a/docs/legacy-docs/api/menu-button.html +++ b/docs/legacy-docs/api/menu-button.html @@ -1,6 +1,6 @@ MenuButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

MenuButton

A button class with a popup menu

DEFINED IN: menu-button.js line number: 11

EXTENDS: button.js

Constructor

MenuButton( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

buildCSSClass()

Allow sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 111

[back to top]

createItems()

Create the list of menu items. Specific to each subclass.

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 92

[back to top]

handleClick()

When you click the button it adds focus, which diff --git a/docs/legacy-docs/api/menu-item.html b/docs/legacy-docs/api/menu-item.html index 49f55c5c80..e2f16557d0 100644 --- a/docs/legacy-docs/api/menu-item.html +++ b/docs/legacy-docs/api/menu-item.html @@ -1,6 +1,6 @@ MenuItem +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

MenuItem

The component for a menu item.

DEFINED IN: menu-item.js line number: 8

EXTENDS: button.js

Constructor

MenuItem( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

createEl( [type], [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoDesc
propsObjectnoDesc

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34

[back to top]

handleClick()

Handle a click on the menu item, and set it to selected

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 50

[back to top]

selected( selected )

Set this menu item as selected or not

Parameters

nameTypeRequiredDescription
selectedBoolean

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/menu.html b/docs/legacy-docs/api/menu.html index 2ecee3c15b..f5df43887f 100644 --- a/docs/legacy-docs/api/menu.html +++ b/docs/legacy-docs/api/menu.html @@ -1,6 +1,6 @@ Menu +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Menu

The Menu component is used to build pop up menus, including subtitle and diff --git a/docs/legacy-docs/api/modal-dialog.html b/docs/legacy-docs/api/modal-dialog.html index f3288852f9..201b9644f5 100644 --- a/docs/legacy-docs/api/modal-dialog.html +++ b/docs/legacy-docs/api/modal-dialog.html @@ -1,6 +1,6 @@ ModalDialog +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ModalDialog

The ModalDialog displays over the video and its controls, which blocks diff --git a/docs/legacy-docs/api/mouse-time-display.html b/docs/legacy-docs/api/mouse-time-display.html index 31fa2bf49d..3eca394d62 100644 --- a/docs/legacy-docs/api/mouse-time-display.html +++ b/docs/legacy-docs/api/mouse-time-display.html @@ -1,6 +1,6 @@ MouseTimeDisplay +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

MouseTimeDisplay

The Mouse Time Display component shows the time you will seek to diff --git a/docs/legacy-docs/api/mute-toggle.html b/docs/legacy-docs/api/mute-toggle.html index 327f2109fb..0aa2e27a00 100644 --- a/docs/legacy-docs/api/mute-toggle.html +++ b/docs/legacy-docs/api/mute-toggle.html @@ -1,6 +1,6 @@ MuteToggle +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

MuteToggle

A button component for muting the audio

DEFINED IN: mute-toggle.js line number: 8

EXTENDS: button.js

Constructor

MuteToggle( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

createEl( [type], [props], [attributes] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoElement's node type. e.g. 'div'
propsObjectnoAn object of properties that should be set on the element
attributesObjectnoAn object of attributes that should be set on the element

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/off-text-track-menu-item.html b/docs/legacy-docs/api/off-text-track-menu-item.html index e561c79879..ab343e9518 100644 --- a/docs/legacy-docs/api/off-text-track-menu-item.html +++ b/docs/legacy-docs/api/off-text-track-menu-item.html @@ -1,6 +1,6 @@ OffTextTrackMenuItem +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

OffTextTrackMenuItem

A special menu item for turning of a specific type of text track

DEFINED IN: off-text-track-menu-item.js line number: 7

EXTENDS: text-track-menu-item.js

Constructor

OffTextTrackMenuItem( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

handleTracksChange( event )

Handle text track change

Parameters

nameTypeRequiredDescription
eventObjectyesEvent object

Defined in https://github.com/videojs/video.js/blob/master/src/js/control-bar/text-track-controls/off-text-track-menu-item.js line number: 35

[back to top]

createEl( [type], [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoDesc
propsObjectnoDesc

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34

[back to top]

selected( selected )

Set this menu item as selected or not

Parameters

nameTypeRequiredDescription
selectedBoolean

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/play-progress-bar.html b/docs/legacy-docs/api/play-progress-bar.html index 5cdf157c50..3dd5495451 100644 --- a/docs/legacy-docs/api/play-progress-bar.html +++ b/docs/legacy-docs/api/play-progress-bar.html @@ -1,6 +1,6 @@ PlayProgressBar +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

PlayProgressBar

Shows play progress

DEFINED IN: play-progress-bar.js line number: 8

EXTENDS: component.js

Constructor

PlayProgressBar( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/play-toggle.html b/docs/legacy-docs/api/play-toggle.html index 44e05027d6..ff7a0f509a 100644 --- a/docs/legacy-docs/api/play-toggle.html +++ b/docs/legacy-docs/api/play-toggle.html @@ -1,6 +1,6 @@ PlayToggle +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

PlayToggle

Button to toggle between play and pause

DEFINED IN: play-toggle.js line number: 7

EXTENDS: button.js

Constructor

PlayToggle( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

handlePause()

Add the vjs-paused class to the element so it can change appearance

Defined in https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js line number: 58

[back to top]

handlePlay()

Add the vjs-playing class to the element so it can change appearance

Defined in https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js line number: 47

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

createEl( [type], [props], [attributes] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoElement's node type. e.g. 'div'
propsObjectnoAn object of properties that should be set on the element
attributesObjectnoAn object of attributes that should be set on the element

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 26

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/playback-rate-menu-button.html b/docs/legacy-docs/api/playback-rate-menu-button.html index 3c6a627569..a875a5f521 100644 --- a/docs/legacy-docs/api/playback-rate-menu-button.html +++ b/docs/legacy-docs/api/playback-rate-menu-button.html @@ -1,6 +1,6 @@ PlaybackRateMenuButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

PlaybackRateMenuButton

The component for controlling the playback rate

DEFINED IN: playback-rate-menu-button.js line number: 10

EXTENDS: menu-button.js

Constructor

PlaybackRateMenuButton( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

updateVisibility()

Hide playback rate controls when they're no playback rate options to select

Defined in https://github.com/videojs/video.js/blob/master/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js line number: 135

[back to top]

createItems()

Create the list of menu items. Specific to each subclass.

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 92

[back to top]

handleKeyPress( event )

Handle key press on menu

Parameters

nameTypeRequiredDescription
eventObjectyesKey press event

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 151

[back to top]

handleSubmenuKeyPress( event )

Handle key press on submenu

Parameters

nameTypeRequiredDescription
eventObjectyesKey press event

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 179

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/playback-rate-menu-item.html b/docs/legacy-docs/api/playback-rate-menu-item.html index 7175867621..cf004262e4 100644 --- a/docs/legacy-docs/api/playback-rate-menu-item.html +++ b/docs/legacy-docs/api/playback-rate-menu-item.html @@ -1,6 +1,6 @@ PlaybackRateMenuItem +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

PlaybackRateMenuItem

The specific menu item type for selecting a playback rate

DEFINED IN: playback-rate-menu-item.js line number: 7

EXTENDS: menu-item.js

Constructor

PlaybackRateMenuItem( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

createEl( [type], [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoDesc
propsObjectnoDesc

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34

[back to top]

selected( selected )

Set this menu item as selected or not

Parameters

nameTypeRequiredDescription
selectedBoolean

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/player.html b/docs/legacy-docs/api/player.html index 8f1b34421a..258099ee65 100644 --- a/docs/legacy-docs/api/player.html +++ b/docs/legacy-docs/api/player.html @@ -1,6 +1,6 @@ Player +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Player

An instance of the Player class is created when any of the Video.js setup methods are used to initialize a video.

diff --git a/docs/legacy-docs/api/popup-button.html b/docs/legacy-docs/api/popup-button.html index 5871c18e18..6ce5a57285 100644 --- a/docs/legacy-docs/api/popup-button.html +++ b/docs/legacy-docs/api/popup-button.html @@ -1,6 +1,6 @@ PopupButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

PopupButton

A button class with a popup control

DEFINED IN: popup-button.js line number: 11

EXTENDS: clickable-component.js

Constructor

PopupButton( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

buildCSSClass()

Allow sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 69

[back to top]

createPopup()

Create popup - Override with specific functionality for component

Defined in https://github.com/videojs/video.js/blob/master/src/js/popup/popup-button.js line number: 49

[back to top]

addChild( child, [options] )

Adds a child component inside this clickable-component

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 112

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleClick()

Handle Click - Override with specific functionality for component

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 132

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 148

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/popup.html b/docs/legacy-docs/api/popup.html index 53b0a27135..90306b03f0 100644 --- a/docs/legacy-docs/api/popup.html +++ b/docs/legacy-docs/api/popup.html @@ -1,6 +1,6 @@ Popup +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Popup

The Popup component is used to build pop up controls.

DEFINED IN: popup.js line number: 9

EXTENDS: component.js

Constructor

Popup()

Methods

addItem( component )

Add a popup item to the popup

Parameters

nameTypeRequiredDescription
componentObject|StringyesComponent or component type to add

Defined in https://github.com/videojs/video.js/blob/master/src/js/popup/popup.js line number: 17

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/poster-image.html b/docs/legacy-docs/api/poster-image.html index 093267bb49..b993e93e61 100644 --- a/docs/legacy-docs/api/poster-image.html +++ b/docs/legacy-docs/api/poster-image.html @@ -1,6 +1,6 @@ PosterImage +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

PosterImage

The component that handles showing the poster image.

DEFINED IN: poster-image.js line number: 10

EXTENDS: button.js

Constructor

PosterImage( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

handleClick()

Event handler for clicks on the poster image

Defined in https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 103

[back to top]

setSrc( url )

Set the poster source depending on the display method

Parameters

nameTypeRequiredDescription
urlStringyesThe URL to the poster source

Defined in https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 82

[back to top]

update()

Event handler for updates to the player's poster source

Defined in https://github.com/videojs/video.js/blob/master/src/js/poster-image.js line number: 63

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/progress-control.html b/docs/legacy-docs/api/progress-control.html index a51aa06a68..67e5063ce9 100644 --- a/docs/legacy-docs/api/progress-control.html +++ b/docs/legacy-docs/api/progress-control.html @@ -1,6 +1,6 @@ ProgressControl +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

ProgressControl

The Progress Control component contains the seek bar, load progress, diff --git a/docs/legacy-docs/api/remaining-time-display.html b/docs/legacy-docs/api/remaining-time-display.html index ee3dae997d..b131ffd141 100644 --- a/docs/legacy-docs/api/remaining-time-display.html +++ b/docs/legacy-docs/api/remaining-time-display.html @@ -1,6 +1,6 @@ RemainingTimeDisplay +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

RemainingTimeDisplay

Displays the time left in the video

DEFINED IN: remaining-time-display.js line number: 8

EXTENDS: component.js

Constructor

RemainingTimeDisplay( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/seek-bar.html b/docs/legacy-docs/api/seek-bar.html index 827d0eeefa..2eef9079ea 100644 --- a/docs/legacy-docs/api/seek-bar.html +++ b/docs/legacy-docs/api/seek-bar.html @@ -1,6 +1,6 @@ SeekBar +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

SeekBar

Seek Bar and holder for the progress bars

DEFINED IN: seek-bar.js line number: 12

EXTENDS: slider.js

Constructor

SeekBar( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

calculateDistance( event )

Calculate distance for slider

Parameters

nameTypeRequiredDescription
eventObjectyesEvent object

Defined in https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 149

[back to top]

handleClick( event )

Listener for click events on slider, used to prevent clicks diff --git a/docs/legacy-docs/api/seekhandle.html b/docs/legacy-docs/api/seekhandle.html index 67725e8da0..142aec3b44 100644 --- a/docs/legacy-docs/api/seekhandle.html +++ b/docs/legacy-docs/api/seekhandle.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/slider.html b/docs/legacy-docs/api/slider.html index cc10dbd6d6..05372b6459 100644 --- a/docs/legacy-docs/api/slider.html +++ b/docs/legacy-docs/api/slider.html @@ -1,6 +1,6 @@ Slider +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Slider

The base functionality for sliders like the volume bar and seek bar

DEFINED IN: slider.js line number: 9

EXTENDS: component.js

Constructor

Slider( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

calculateDistance( event )

Calculate distance for slider

Parameters

nameTypeRequiredDescription
eventObjectyesEvent object

Defined in https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 149

[back to top]

createEl( type, [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringyesType of element to create
propsObjectnoList of properties in Object form

Defined in https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 38

[back to top]

handleClick( event )

Listener for click events on slider, used to prevent clicks diff --git a/docs/legacy-docs/api/spacer.html b/docs/legacy-docs/api/spacer.html index ba29ab6012..8712eb6c0e 100644 --- a/docs/legacy-docs/api/spacer.html +++ b/docs/legacy-docs/api/spacer.html @@ -1,6 +1,6 @@ Spacer +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Spacer

Just an empty spacer element that can be used as an append point for plugins, etc. diff --git a/docs/legacy-docs/api/subtitles-button.html b/docs/legacy-docs/api/subtitles-button.html index 71494292db..d4139061dc 100644 --- a/docs/legacy-docs/api/subtitles-button.html +++ b/docs/legacy-docs/api/subtitles-button.html @@ -1,6 +1,6 @@ SubtitlesButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

SubtitlesButton

The button component for toggling and selecting subtitles

DEFINED IN: subtitles-button.js line number: 7

EXTENDS: text-track-button.js

Constructor

SubtitlesButton( player,[options],[ready] )

Parameters

nameTypeRequiredDescription
playerObjectyesPlayer object
optionsObjectnoObject of option names and values
readyfunctionnoReady callback function

Methods

createItems()

Create the list of menu items. Specific to each subclass.

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-button.js line number: 92

[back to top]

handleClick()

When you click the button it adds focus, which diff --git a/docs/legacy-docs/api/subtitlestrack.html b/docs/legacy-docs/api/subtitlestrack.html index 67725e8da0..142aec3b44 100644 --- a/docs/legacy-docs/api/subtitlestrack.html +++ b/docs/legacy-docs/api/subtitlestrack.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/tech.html b/docs/legacy-docs/api/tech.html index ddad5fcb1f..6615856faa 100644 --- a/docs/legacy-docs/api/tech.html +++ b/docs/legacy-docs/api/tech.html @@ -1,6 +1,6 @@ Tech +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

Tech

Base class for media (HTML5 Video, Flash) controllers

DEFINED IN: tech.js line number: 21

EXTENDS: component.js

Constructor

Tech( [options],[ready] )

Parameters

nameTypeRequiredDescription
optionsObjectnoOptions object
readyfunctionnoReady callback function

Methods

addRemoteTextTrack( options )

Creates a remote text track object and returns a emulated html track element

Parameters

nameTypeRequiredDescription
optionsObjectyesThe object should contain values for diff --git a/docs/legacy-docs/api/text-track-button.html b/docs/legacy-docs/api/text-track-button.html index aeacdc5e44..7bb0cafea5 100644 --- a/docs/legacy-docs/api/text-track-button.html +++ b/docs/legacy-docs/api/text-track-button.html @@ -1,6 +1,6 @@ TextTrackButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

TextTrackButton

The base class for buttons that toggle specific text track types (e.g. subtitles)

DEFINED IN: text-track-button.js line number: 10

EXTENDS: menu-button.js

Constructor

TextTrackButton( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject
+

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

TextTrackDisplay

The component for displaying text track cues

DEFINED IN: text-track-display.js line number: 27

EXTENDS: component.js

Constructor

TextTrackDisplay( player,[options],[ready] )

Parameters

nameTypeRequiredDescription
playerObjectyesMain Player
optionsObjectnoObject of option names and values
readyfunctionnoReady callback function

Methods

constructColor( color, opacity )

Add cue HTML to display

Parameters

nameTypeRequiredDescription
colorNumberyesHex number for color, like #f0e
opacityNumberyesValue for opacity,0.0 - 1.0

Defined in https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-display.js line number: 207

[back to top]

tryUpdateStyle( el, style, rule )

Try to update style diff --git a/docs/legacy-docs/api/text-track-menu-item.html b/docs/legacy-docs/api/text-track-menu-item.html index c8e53278c3..b9280633ad 100644 --- a/docs/legacy-docs/api/text-track-menu-item.html +++ b/docs/legacy-docs/api/text-track-menu-item.html @@ -1,6 +1,6 @@ TextTrackMenuItem +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

TextTrackMenuItem

The specific menu item type for selecting a language within a text track kind

DEFINED IN: text-track-menu-item.js line number: 10

EXTENDS: menu-item.js

Constructor

TextTrackMenuItem( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

createEl( [type], [props] )

Create the component's DOM element

Parameters

nameTypeRequiredDescription
typeStringnoDesc
propsObjectnoDesc

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 34

[back to top]

selected( selected )

Set this menu item as selected or not

Parameters

nameTypeRequiredDescription
selectedBoolean

Defined in https://github.com/videojs/video.js/blob/master/src/js/menu/menu-item.js line number: 59

[back to top]

addChild( child, [options] ) (deprecated)

Adds a child component inside this button

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 57

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Extend with specific functionality for button

Defined in https://github.com/videojs/video.js/blob/master/src/js/button.js line number: 74

[back to top]

buildCSSClass()

Allows sub components to stack CSS class names

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 102

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/text-track-settings.html b/docs/legacy-docs/api/text-track-settings.html index 9cd0e3fe4d..ad5f87343a 100644 --- a/docs/legacy-docs/api/text-track-settings.html +++ b/docs/legacy-docs/api/text-track-settings.html @@ -1,6 +1,6 @@ TextTrackSettings +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

TextTrackSettings

Manipulate settings of texttracks

DEFINED IN: text-track-settings.js line number: 11

EXTENDS: component.js

Constructor

TextTrackSettings( player,[options] )

Parameters

nameTypeRequiredDescription
playerObjectyesMain Player
optionsObjectnoObject of option names and values

Methods

getValues()

Get texttrack settings diff --git a/docs/legacy-docs/api/texttrack.html b/docs/legacy-docs/api/texttrack.html index 6d33909ca4..df7cfc0b97 100644 --- a/docs/legacy-docs/api/texttrack.html +++ b/docs/legacy-docs/api/texttrack.html @@ -4,7 +4,7 @@ - + diff --git a/docs/legacy-docs/api/time-divider.html b/docs/legacy-docs/api/time-divider.html index edb0a3f857..e6f5120488 100644 --- a/docs/legacy-docs/api/time-divider.html +++ b/docs/legacy-docs/api/time-divider.html @@ -1,6 +1,6 @@ TimeDivider +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

TimeDivider

The separator between the current time and duration. diff --git a/docs/legacy-docs/api/video.html b/docs/legacy-docs/api/video.html index e849176ebe..6249ec4af8 100644 --- a/docs/legacy-docs/api/video.html +++ b/docs/legacy-docs/api/video.html @@ -1,6 +1,6 @@ videojs +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

videojs

Doubles as the main function for users to create a player instance and also diff --git a/docs/legacy-docs/api/volume-bar.html b/docs/legacy-docs/api/volume-bar.html index 9dca8d5132..c70f41dfc3 100644 --- a/docs/legacy-docs/api/volume-bar.html +++ b/docs/legacy-docs/api/volume-bar.html @@ -1,6 +1,6 @@ VolumeBar +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

VolumeBar

The bar that contains the volume level and can be clicked on to adjust the level

DEFINED IN: volume-bar.js line number: 11

EXTENDS: slider.js

Constructor

VolumeBar( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

calculateDistance( event )

Calculate distance for slider

Parameters

nameTypeRequiredDescription
eventObjectyesEvent object

Defined in https://github.com/videojs/video.js/blob/master/src/js/slider/slider.js line number: 149

[back to top]

handleClick( event )

Listener for click events on slider, used to prevent clicks diff --git a/docs/legacy-docs/api/volume-control.html b/docs/legacy-docs/api/volume-control.html index 34d6056ff0..df288b3ff2 100644 --- a/docs/legacy-docs/api/volume-control.html +++ b/docs/legacy-docs/api/volume-control.html @@ -1,6 +1,6 @@ VolumeControl +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

VolumeControl

The component for controlling the volume level

DEFINED IN: volume-control.js line number: 9

EXTENDS: component.js

Constructor

VolumeControl( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/volume-level.html b/docs/legacy-docs/api/volume-level.html index 4f5fb15be4..cf2cfadbb8 100644 --- a/docs/legacy-docs/api/volume-level.html +++ b/docs/legacy-docs/api/volume-level.html @@ -1,6 +1,6 @@ VolumeLevel +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

VolumeLevel

Shows volume level

DEFINED IN: volume-level.js line number: 6

EXTENDS: component.js

Constructor

VolumeLevel( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/api/volume-menu-button.html b/docs/legacy-docs/api/volume-menu-button.html index afbd5a9d73..0cba07cc4f 100644 --- a/docs/legacy-docs/api/volume-menu-button.html +++ b/docs/legacy-docs/api/volume-menu-button.html @@ -1,6 +1,6 @@ VolumeMenuButton +

This documentation is for an outdated version of Video.js. See documentation for the current release.

API Index

VolumeMenuButton

Button for volume popup

DEFINED IN: volume-menu-button.js line number: 12

EXTENDS: popup-button.js

Constructor

VolumeMenuButton( player,[options] )

Parameters

nameTypeRequiredDescription
playerPlayer|Object
optionsObject

Methods

addChild( child, [options] )

Adds a child component inside this clickable-component

Parameters

nameTypeRequiredDescription
childString|ComponentyesThe class name or instance of a child to add
optionsObjectnoOptions, including options to be passed to children of the child.

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 112

[back to top]

controlText( el )

create control text

Parameters

nameTypeRequiredDescription
elElementyesParent element for the control text

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 65

[back to top]

handleFocus()

Handle Focus - Add keyboard functionality to element

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 139

[back to top]

handleKeyPress()

Handle KeyPress (document level) - Trigger click when Space or Enter key is pressed

Defined in https://github.com/videojs/video.js/blob/master/src/js/clickable-component.js line number: 148

[back to top]

$( selector, [context] )

Finds a single DOM element matching selector within the component's diff --git a/docs/legacy-docs/examples/simple-embed/index.html b/docs/legacy-docs/examples/simple-embed/index.html index 60801ef670..606fefbef8 100644 --- a/docs/legacy-docs/examples/simple-embed/index.html +++ b/docs/legacy-docs/examples/simple-embed/index.html @@ -4,9 +4,9 @@ Video.js | HTML5 Video Player - - - + + + @@ -15,10 +15,10 @@

This documentation is for an outdated version of Video.js. See documentation for the current release. -

Adding to Video.js

<video id="example_video_1" class="video-js"
   controls preload="auto" width="640" height="264"
   data-setup='{"example_option":true}'>
- <source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4" />
- <source src="http://vjs.zencdn.net/v/oceans.webm" type="video/webm" />
- <source src="http://vjs.zencdn.net/v/oceans.ogv" type="video/ogg" />
+ <source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4" />
+ <source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm" />
+ <source src="https://vjs.zencdn.net/v/oceans.ogv" type="video/ogg" />
 
  <track kind="captions" src="http://example.com/path/to/captions.vtt" srclang="en" label="English" default>
 
@@ -45,7 +45,7 @@ 

Subtitles from Another Domain

In addition to enabling CORS on the server serving the text tracks, you will need to add the crossorigin attribute to the video element itself. This attribute has two values anonymous and use-credentials. Most users will want to use anonymous with cross-origin tracks. It can be added to the video element like so:

<video class="video-js" crossorigin="anonymous">
-  <source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
+  <source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
   <track src="http://example.com/oceans.vtt" kind="captions" srclang="en" label="English">
 </video>