1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
Daniel Neto 2023-11-10 09:36:43 -03:00
parent 0e3fa24329
commit 4e95a0e94c
369 changed files with 16946 additions and 89882 deletions

16
node_modules/video.js/CHANGELOG.md generated vendored
View file

@ -1,3 +1,19 @@
<a name="8.6.1"></a>
## [8.6.1](https://github.com/videojs/video.js/compare/v8.6.0...v8.6.1) (2023-10-12)
### Bug Fixes
* **control-bar:** incorrect display when control bar display is locked ([#8435](https://github.com/videojs/video.js/issues/8435)) ([473176f](https://github.com/videojs/video.js/commit/473176f))
* **error:** chromium reset mediaError when the poster is invalid ([#8410](https://github.com/videojs/video.js/issues/8410)) ([68f1429](https://github.com/videojs/video.js/commit/68f1429)), closes [#8409](https://github.com/videojs/video.js/issues/8409)
* Resolves captions sizing issue when minified ([#8442](https://github.com/videojs/video.js/issues/8442)) ([9267c46](https://github.com/videojs/video.js/commit/9267c46))
* **types:** improves quality of typescript definitions ([#8218](https://github.com/videojs/video.js/issues/8218)) ([781eb43](https://github.com/videojs/video.js/commit/781eb43))
* **types:** use typeof for registerComponent and registerPlugin ([#8451](https://github.com/videojs/video.js/issues/8451)) ([2c36d25](https://github.com/videojs/video.js/commit/2c36d25))
### Chores
* **types:** fix issues in exported types ([#8333](https://github.com/videojs/video.js/issues/8333)) ([bad086d](https://github.com/videojs/video.js/commit/bad086d))
* update VHS and mux.js versions ([#8462](https://github.com/videojs/video.js/issues/8462)) ([9701de9](https://github.com/videojs/video.js/commit/9701de9))
<a name="8.6.0"></a>
# [8.6.0](https://github.com/videojs/video.js/compare/v8.5.3...v8.6.0) (2023-09-25)

120
node_modules/video.js/core.es.js generated vendored
View file

@ -1,6 +1,6 @@
/**
* @license
* Video.js 8.6.0 <http://videojs.com/>
* Video.js 8.6.1 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
@ -17,7 +17,7 @@ import safeParseTuple from 'safe-json-parse/tuple';
import XHR from '@videojs/xhr';
import vtt from 'videojs-vtt.js';
var version = "8.6.0";
var version = "8.6.1";
/**
* An Object that contains lifecycle hooks as keys which point to an array
@ -1997,7 +1997,7 @@ function _cleanUpEvents(elem, type) {
* @param {Element|Object} elem
* Element or object to bind listeners to
*
* @param {string} type
* @param {string[]} types
* Type of event to bind to.
*
* @param {Function} callback
@ -2720,7 +2720,7 @@ class EventTarget {
/**
* All event listeners should follow the following format.
*
* @callback EventTarget~EventListener
* @callback EventListener
* @this {EventTarget}
*
* @param {Event} event
@ -2737,7 +2737,7 @@ class EventTarget {
* will have extra functionality. See that function for more information.
*
* @property EventTarget.prototype.allowedEvents_
* @private
* @protected
*/
EventTarget.prototype.allowedEvents_ = {};
@ -3973,7 +3973,6 @@ class Component {
/**
* Add a child `Component` inside the current `Component`.
*
*
* @param {string|Component} child
* The name or instance of a child to add.
*
@ -3984,6 +3983,7 @@ class Component {
* @param {number} [index=this.children_.length]
* The index to attempt to add a child into.
*
*
* @return {Component}
* The `Component` that gets added as a child. When using a string the
* `Component` will get created by this process.
@ -4438,9 +4438,8 @@ class Component {
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The width when getting, zero if there is no width
*/
width(num, skipListeners) {
return this.dimension('width', num, skipListeners);
@ -4456,9 +4455,8 @@ class Component {
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The height when getting, zero if there is no height
*/
height(num, skipListeners) {
return this.dimension('height', num, skipListeners);
@ -4504,7 +4502,7 @@ class Component {
* @param {boolean} [skipListeners]
* Skip componentresize event trigger
*
* @return {number}
* @return {number|undefined}
* The dimension when getting or 0 if unset
*/
dimension(widthOrHeight, num, skipListeners) {
@ -4679,7 +4677,7 @@ class Component {
* delegates to `handleKeyDown`. This means anyone calling `handleKeyPress`
* will not see their method calls stop working.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to be called.
*/
handleKeyPress(event) {
@ -4691,7 +4689,7 @@ class Component {
* support toggling the controls through a tap on the video. They get enabled
* because every sub-component would have extra overhead otherwise.
*
* @private
* @protected
* @fires Component#tap
* @listens Component#touchstart
* @listens Component#touchmove
@ -6316,7 +6314,7 @@ class TrackList extends EventTarget {
* Events that can be called with on + eventName. See {@link EventHandler}.
*
* @property {Object} TrackList#allowedEvents_
* @private
* @protected
*/
TrackList.prototype.allowedEvents_ = {
change: 'change',
@ -6366,7 +6364,7 @@ class AudioTrackList extends TrackList {
/**
* Create an instance of this class.
*
* @param {AudioTrack[]} [tracks=[]]
* @param { import('./audio-track').default[] } [tracks=[]]
* A list of `AudioTrack` to instantiate the list with.
*/
constructor(tracks = []) {
@ -7469,7 +7467,9 @@ class TextTrack extends Track {
*/
addCue(originalCue) {
let cue = originalCue;
if (cue.constructor && cue.constructor.name !== 'VTTCue') {
// Testing if the cue is a VTTCue in a way that survives minification
if (!('getCueAsHTML' in cue)) {
cue = new window.vttjs.VTTCue(originalCue.startTime, originalCue.endTime, originalCue.text);
for (const prop in originalCue) {
if (!(prop in cue)) {
@ -7512,6 +7512,7 @@ class TextTrack extends Track {
/**
* cuechange - One or more cues in the track have become active or stopped being active.
* @protected
*/
TextTrack.prototype.allowedEvents_ = {
cuechange: 'cuechange'
@ -7770,6 +7771,10 @@ class HTMLTrackElement extends EventTarget {
});
}
}
/**
* @protected
*/
HTMLTrackElement.prototype.allowedEvents_ = {
load: 'load'
};
@ -7863,7 +7868,7 @@ ALL.names = [].concat(REMOTE.names).concat(NORMAL.names);
* * `var SourceObject = {src: 'http://ex.com/video.mp4', type: 'video/mp4'};`
* `var SourceString = 'http://example.com/some-video.mp4';`
*
* @typedef {Object|string} Tech~SourceObject
* @typedef {Object|string} SourceObject
*
* @property {string} src
* The url to the source
@ -8299,7 +8304,7 @@ class Tech extends Component {
* > NOTE: This implementation is incomplete. It does not track the played `TimeRange`.
* It only checks whether the source has played at all or not.
*
* @return {TimeRange}
* @return { import('../utils/time').TimeRange }
* - A single time range if this video has played
* - An empty set of ranges if not.
*/
@ -9063,7 +9068,7 @@ Tech.withSourceHandlers = function (_Tech) {
*
* TODO: Answer question: should 'probably' be prioritized over 'maybe'
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* The source object
*
* @param {Object} options
@ -9088,7 +9093,7 @@ Tech.withSourceHandlers = function (_Tech) {
/**
* Check if the tech can support the given source.
*
* @param {Tech~SourceObject} srcObj
* @param {SourceObject} srcObj
* The source object
*
* @param {Object} options
@ -9143,7 +9148,7 @@ Tech.withSourceHandlers = function (_Tech) {
* and source handlers.
* Should never be called unless a source handler was found.
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* A source object with src and type keys
*/
_Tech.prototype.setSource = function (source) {
@ -9922,7 +9927,7 @@ class ClickableComponent extends Component {
*
* By default, if the key is Space or Enter, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -10678,7 +10683,7 @@ class Button extends ClickableComponent {
* This gets called when a `Button` has focus and `keydown` is triggered via a key
* press.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to get called.
*
* @listens keydown
@ -10732,7 +10737,7 @@ class BigPlayButton extends Button {
* This gets called when a `BigPlayButton` "clicked". See {@link ClickableComponent}
* for more detailed information on what a click can be.
*
* @param {KeyboardEvent} event
* @param {KeyboardEvent|MouseEvent|TouchEvent} event
* The `keydown`, `tap`, or `click` event that caused this function to be
* called.
*
@ -10743,7 +10748,7 @@ class BigPlayButton extends Button {
const playPromise = this.player_.play();
// exit early if clicked via the mouse
if (this.mouseused_ && event.clientX && event.clientY) {
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
silencePromise(playPromise);
if (this.player_.tech(true)) {
this.player_.tech(true).focus();
@ -10763,10 +10768,29 @@ class BigPlayButton extends Button {
this.setTimeout(playFocus, 1);
}
}
/**
* Event handler that is called when a `BigPlayButton` receives a
* `keydown` event.
*
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
*/
handleKeyDown(event) {
this.mouseused_ = false;
super.handleKeyDown(event);
}
/**
* Handle `mousedown` events on the `BigPlayButton`.
*
* @param {MouseEvent} event
* `mousedown` or `touchstart` event that triggered this function
*
* @listens mousedown
*/
handleMouseDown(event) {
this.mouseused_ = true;
}
@ -10852,7 +10876,7 @@ class CloseButton extends Button {
*
* By default, if the key is Esc, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -14479,7 +14503,7 @@ class Menu extends Component {
/**
* Handle a `keydown` event on this menu. This listener is added in the constructor.
*
* @param {Event} event
* @param {KeyboardEvent} event
* A `keydown` event that happened on the menu.
*
* @listens keydown
@ -15076,7 +15100,7 @@ class MenuItem extends ClickableComponent {
* Ignore keys which are used by the menu, but pass any other ones up. See
* {@link ClickableComponent#handleKeyDown} for instances where this is called.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -20135,8 +20159,8 @@ const DEFAULT_BREAKPOINTS = {
*
* After an instance has been created it can be accessed globally in three ways:
* 1. By calling `videojs.getPlayer('example_video_1');`
* 2. By calling `videojs('example_video_1');` (not recomended)
* 2. By using it directly via `videojs.players.example_video_1;`
* 2. By calling `videojs('example_video_1');` (not recommended)
* 2. By using it directly via `videojs.players.example_video_1;`
*
* @extends Component
* @global
@ -21875,7 +21899,9 @@ class Player extends Component {
*/
handleTechError_() {
const error = this.tech_.error();
this.error(error);
if (error) {
this.error(error);
}
}
/**
@ -22831,7 +22857,7 @@ class Player extends Component {
* This allows player-wide hotkeys (either as defined below, or optionally
* by an external function).
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -25035,7 +25061,7 @@ const markPluginAsActive = (player, name) => {
* @param {Player} player
* A Video.js player instance.
*
* @param {Plugin~PluginEventHash} hash
* @param {PluginEventHash} hash
* A plugin event hash.
*
* @param {boolean} [before]
@ -25188,7 +25214,7 @@ class Plugin {
* @param {Object} [hash={}]
* An object to be used as event an event hash.
*
* @return {Plugin~PluginEventHash}
* @return {PluginEventHash}
* An event hash object with provided properties mixed-in.
*/
getEventHash(hash = {}) {
@ -25207,7 +25233,7 @@ class Plugin {
*
* @param {Object} [hash={}]
* Additional data hash to merge with a
* {@link Plugin~PluginEventHash|PluginEventHash}.
* {@link PluginEventHash|PluginEventHash}.
*
* @return {boolean}
* Whether or not default was prevented.
@ -25423,7 +25449,7 @@ Player.prototype.hasPlugin = function (name) {
* Signals that a plugin is about to be set up on a player.
*
* @event Player#beforepluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -25431,14 +25457,14 @@ Player.prototype.hasPlugin = function (name) {
* is the name of the plugin.
*
* @event Player#beforepluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* Signals that a plugin has just been set up on a player.
*
* @event Player#pluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -25446,11 +25472,11 @@ Player.prototype.hasPlugin = function (name) {
* is the name of the plugin.
*
* @event Player#pluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* @typedef {Object} Plugin~PluginEventHash
* @typedef {Object} PluginEventHash
*
* @property {string} instance
* For basic plugins, the return value of the plugin function. For
@ -25777,10 +25803,10 @@ videojs.getComponent = Component.getComponent;
* @param {string} name
* The class name of the component
*
* @param {Component} comp
* @param {typeof Component} comp
* The component class
*
* @return {Component}
* @return {typeof Component}
* The newly registered component
*/
videojs.registerComponent = (name, comp) => {
@ -25863,9 +25889,11 @@ videojs.deregisterPlugin = Plugin.deregisterPlugin;
*
* @param {string} name
* The plugin name
*
* @param {Plugin|Function} plugin
*
* @param {typeof Plugin|Function} plugin
* The plugin sub-class or function
*
* @return {typeof Plugin|Function}
*/
videojs.plugin = (name, plugin) => {
log.warn('videojs.plugin() is deprecated; use videojs.registerPlugin() instead');

120
node_modules/video.js/core.js generated vendored
View file

@ -1,6 +1,6 @@
/**
* @license
* Video.js 8.6.0 <http://videojs.com/>
* Video.js 8.6.1 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
@ -28,7 +28,7 @@ var safeParseTuple__default = /*#__PURE__*/_interopDefaultLegacy(safeParseTuple)
var XHR__default = /*#__PURE__*/_interopDefaultLegacy(XHR);
var vtt__default = /*#__PURE__*/_interopDefaultLegacy(vtt);
var version = "8.6.0";
var version = "8.6.1";
/**
* An Object that contains lifecycle hooks as keys which point to an array
@ -2008,7 +2008,7 @@ function _cleanUpEvents(elem, type) {
* @param {Element|Object} elem
* Element or object to bind listeners to
*
* @param {string} type
* @param {string[]} types
* Type of event to bind to.
*
* @param {Function} callback
@ -2731,7 +2731,7 @@ class EventTarget {
/**
* All event listeners should follow the following format.
*
* @callback EventTarget~EventListener
* @callback EventListener
* @this {EventTarget}
*
* @param {Event} event
@ -2748,7 +2748,7 @@ class EventTarget {
* will have extra functionality. See that function for more information.
*
* @property EventTarget.prototype.allowedEvents_
* @private
* @protected
*/
EventTarget.prototype.allowedEvents_ = {};
@ -3984,7 +3984,6 @@ class Component {
/**
* Add a child `Component` inside the current `Component`.
*
*
* @param {string|Component} child
* The name or instance of a child to add.
*
@ -3995,6 +3994,7 @@ class Component {
* @param {number} [index=this.children_.length]
* The index to attempt to add a child into.
*
*
* @return {Component}
* The `Component` that gets added as a child. When using a string the
* `Component` will get created by this process.
@ -4449,9 +4449,8 @@ class Component {
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The width when getting, zero if there is no width
*/
width(num, skipListeners) {
return this.dimension('width', num, skipListeners);
@ -4467,9 +4466,8 @@ class Component {
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The height when getting, zero if there is no height
*/
height(num, skipListeners) {
return this.dimension('height', num, skipListeners);
@ -4515,7 +4513,7 @@ class Component {
* @param {boolean} [skipListeners]
* Skip componentresize event trigger
*
* @return {number}
* @return {number|undefined}
* The dimension when getting or 0 if unset
*/
dimension(widthOrHeight, num, skipListeners) {
@ -4690,7 +4688,7 @@ class Component {
* delegates to `handleKeyDown`. This means anyone calling `handleKeyPress`
* will not see their method calls stop working.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to be called.
*/
handleKeyPress(event) {
@ -4702,7 +4700,7 @@ class Component {
* support toggling the controls through a tap on the video. They get enabled
* because every sub-component would have extra overhead otherwise.
*
* @private
* @protected
* @fires Component#tap
* @listens Component#touchstart
* @listens Component#touchmove
@ -6327,7 +6325,7 @@ class TrackList extends EventTarget {
* Events that can be called with on + eventName. See {@link EventHandler}.
*
* @property {Object} TrackList#allowedEvents_
* @private
* @protected
*/
TrackList.prototype.allowedEvents_ = {
change: 'change',
@ -6377,7 +6375,7 @@ class AudioTrackList extends TrackList {
/**
* Create an instance of this class.
*
* @param {AudioTrack[]} [tracks=[]]
* @param { import('./audio-track').default[] } [tracks=[]]
* A list of `AudioTrack` to instantiate the list with.
*/
constructor(tracks = []) {
@ -7480,7 +7478,9 @@ class TextTrack extends Track {
*/
addCue(originalCue) {
let cue = originalCue;
if (cue.constructor && cue.constructor.name !== 'VTTCue') {
// Testing if the cue is a VTTCue in a way that survives minification
if (!('getCueAsHTML' in cue)) {
cue = new window__default["default"].vttjs.VTTCue(originalCue.startTime, originalCue.endTime, originalCue.text);
for (const prop in originalCue) {
if (!(prop in cue)) {
@ -7523,6 +7523,7 @@ class TextTrack extends Track {
/**
* cuechange - One or more cues in the track have become active or stopped being active.
* @protected
*/
TextTrack.prototype.allowedEvents_ = {
cuechange: 'cuechange'
@ -7781,6 +7782,10 @@ class HTMLTrackElement extends EventTarget {
});
}
}
/**
* @protected
*/
HTMLTrackElement.prototype.allowedEvents_ = {
load: 'load'
};
@ -7874,7 +7879,7 @@ ALL.names = [].concat(REMOTE.names).concat(NORMAL.names);
* * `var SourceObject = {src: 'http://ex.com/video.mp4', type: 'video/mp4'};`
* `var SourceString = 'http://example.com/some-video.mp4';`
*
* @typedef {Object|string} Tech~SourceObject
* @typedef {Object|string} SourceObject
*
* @property {string} src
* The url to the source
@ -8310,7 +8315,7 @@ class Tech extends Component {
* > NOTE: This implementation is incomplete. It does not track the played `TimeRange`.
* It only checks whether the source has played at all or not.
*
* @return {TimeRange}
* @return { import('../utils/time').TimeRange }
* - A single time range if this video has played
* - An empty set of ranges if not.
*/
@ -9074,7 +9079,7 @@ Tech.withSourceHandlers = function (_Tech) {
*
* TODO: Answer question: should 'probably' be prioritized over 'maybe'
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* The source object
*
* @param {Object} options
@ -9099,7 +9104,7 @@ Tech.withSourceHandlers = function (_Tech) {
/**
* Check if the tech can support the given source.
*
* @param {Tech~SourceObject} srcObj
* @param {SourceObject} srcObj
* The source object
*
* @param {Object} options
@ -9154,7 +9159,7 @@ Tech.withSourceHandlers = function (_Tech) {
* and source handlers.
* Should never be called unless a source handler was found.
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* A source object with src and type keys
*/
_Tech.prototype.setSource = function (source) {
@ -9933,7 +9938,7 @@ class ClickableComponent extends Component {
*
* By default, if the key is Space or Enter, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -10689,7 +10694,7 @@ class Button extends ClickableComponent {
* This gets called when a `Button` has focus and `keydown` is triggered via a key
* press.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to get called.
*
* @listens keydown
@ -10743,7 +10748,7 @@ class BigPlayButton extends Button {
* This gets called when a `BigPlayButton` "clicked". See {@link ClickableComponent}
* for more detailed information on what a click can be.
*
* @param {KeyboardEvent} event
* @param {KeyboardEvent|MouseEvent|TouchEvent} event
* The `keydown`, `tap`, or `click` event that caused this function to be
* called.
*
@ -10754,7 +10759,7 @@ class BigPlayButton extends Button {
const playPromise = this.player_.play();
// exit early if clicked via the mouse
if (this.mouseused_ && event.clientX && event.clientY) {
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
silencePromise(playPromise);
if (this.player_.tech(true)) {
this.player_.tech(true).focus();
@ -10774,10 +10779,29 @@ class BigPlayButton extends Button {
this.setTimeout(playFocus, 1);
}
}
/**
* Event handler that is called when a `BigPlayButton` receives a
* `keydown` event.
*
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
*/
handleKeyDown(event) {
this.mouseused_ = false;
super.handleKeyDown(event);
}
/**
* Handle `mousedown` events on the `BigPlayButton`.
*
* @param {MouseEvent} event
* `mousedown` or `touchstart` event that triggered this function
*
* @listens mousedown
*/
handleMouseDown(event) {
this.mouseused_ = true;
}
@ -10863,7 +10887,7 @@ class CloseButton extends Button {
*
* By default, if the key is Esc, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -14490,7 +14514,7 @@ class Menu extends Component {
/**
* Handle a `keydown` event on this menu. This listener is added in the constructor.
*
* @param {Event} event
* @param {KeyboardEvent} event
* A `keydown` event that happened on the menu.
*
* @listens keydown
@ -15087,7 +15111,7 @@ class MenuItem extends ClickableComponent {
* Ignore keys which are used by the menu, but pass any other ones up. See
* {@link ClickableComponent#handleKeyDown} for instances where this is called.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -20146,8 +20170,8 @@ const DEFAULT_BREAKPOINTS = {
*
* After an instance has been created it can be accessed globally in three ways:
* 1. By calling `videojs.getPlayer('example_video_1');`
* 2. By calling `videojs('example_video_1');` (not recomended)
* 2. By using it directly via `videojs.players.example_video_1;`
* 2. By calling `videojs('example_video_1');` (not recommended)
* 2. By using it directly via `videojs.players.example_video_1;`
*
* @extends Component
* @global
@ -21886,7 +21910,9 @@ class Player extends Component {
*/
handleTechError_() {
const error = this.tech_.error();
this.error(error);
if (error) {
this.error(error);
}
}
/**
@ -22842,7 +22868,7 @@ class Player extends Component {
* This allows player-wide hotkeys (either as defined below, or optionally
* by an external function).
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -25046,7 +25072,7 @@ const markPluginAsActive = (player, name) => {
* @param {Player} player
* A Video.js player instance.
*
* @param {Plugin~PluginEventHash} hash
* @param {PluginEventHash} hash
* A plugin event hash.
*
* @param {boolean} [before]
@ -25199,7 +25225,7 @@ class Plugin {
* @param {Object} [hash={}]
* An object to be used as event an event hash.
*
* @return {Plugin~PluginEventHash}
* @return {PluginEventHash}
* An event hash object with provided properties mixed-in.
*/
getEventHash(hash = {}) {
@ -25218,7 +25244,7 @@ class Plugin {
*
* @param {Object} [hash={}]
* Additional data hash to merge with a
* {@link Plugin~PluginEventHash|PluginEventHash}.
* {@link PluginEventHash|PluginEventHash}.
*
* @return {boolean}
* Whether or not default was prevented.
@ -25434,7 +25460,7 @@ Player.prototype.hasPlugin = function (name) {
* Signals that a plugin is about to be set up on a player.
*
* @event Player#beforepluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -25442,14 +25468,14 @@ Player.prototype.hasPlugin = function (name) {
* is the name of the plugin.
*
* @event Player#beforepluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* Signals that a plugin has just been set up on a player.
*
* @event Player#pluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -25457,11 +25483,11 @@ Player.prototype.hasPlugin = function (name) {
* is the name of the plugin.
*
* @event Player#pluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* @typedef {Object} Plugin~PluginEventHash
* @typedef {Object} PluginEventHash
*
* @property {string} instance
* For basic plugins, the return value of the plugin function. For
@ -25788,10 +25814,10 @@ videojs.getComponent = Component.getComponent;
* @param {string} name
* The class name of the component
*
* @param {Component} comp
* @param {typeof Component} comp
* The component class
*
* @return {Component}
* @return {typeof Component}
* The newly registered component
*/
videojs.registerComponent = (name, comp) => {
@ -25874,9 +25900,11 @@ videojs.deregisterPlugin = Plugin.deregisterPlugin;
*
* @param {string} name
* The plugin name
*
* @param {Plugin|Function} plugin
*
* @param {typeof Plugin|Function} plugin
* The plugin sub-class or function
*
* @return {typeof Plugin|Function}
*/
videojs.plugin = (name, plugin) => {
log.warn('videojs.plugin() is deprecated; use videojs.registerPlugin() instead');

View file

@ -911,6 +911,10 @@ body.vjs-pip-window .video-js {
background-color: rgba(43, 51, 63, 0.7);
}
.video-js:not(.vjs-controls-disabled, .vjs-using-native-controls, .vjs-error) .vjs-control-bar.vjs-lock-showing {
display: flex !important;
}
.vjs-has-started .vjs-control-bar,
.vjs-audio-only-mode .vjs-control-bar {
display: flex;

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
/**
* @license
* Video.js 8.6.0 <http://videojs.com/>
* Video.js 8.6.1 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
@ -16,7 +16,7 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.videojs = factory());
})(this, (function () { 'use strict';
var version = "8.6.0";
var version = "8.6.1";
/**
* An Object that contains lifecycle hooks as keys which point to an array
@ -1996,7 +1996,7 @@
* @param {Element|Object} elem
* Element or object to bind listeners to
*
* @param {string} type
* @param {string[]} types
* Type of event to bind to.
*
* @param {Function} callback
@ -2719,7 +2719,7 @@
/**
* All event listeners should follow the following format.
*
* @callback EventTarget~EventListener
* @callback EventListener
* @this {EventTarget}
*
* @param {Event} event
@ -2736,7 +2736,7 @@
* will have extra functionality. See that function for more information.
*
* @property EventTarget.prototype.allowedEvents_
* @private
* @protected
*/
EventTarget.prototype.allowedEvents_ = {};
@ -4169,7 +4169,6 @@
/**
* Add a child `Component` inside the current `Component`.
*
*
* @param {string|Component} child
* The name or instance of a child to add.
*
@ -4180,6 +4179,7 @@
* @param {number} [index=this.children_.length]
* The index to attempt to add a child into.
*
*
* @return {Component}
* The `Component` that gets added as a child. When using a string the
* `Component` will get created by this process.
@ -4634,9 +4634,8 @@
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The width when getting, zero if there is no width
*/
width(num, skipListeners) {
return this.dimension('width', num, skipListeners);
@ -4652,9 +4651,8 @@
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The height when getting, zero if there is no height
*/
height(num, skipListeners) {
return this.dimension('height', num, skipListeners);
@ -4700,7 +4698,7 @@
* @param {boolean} [skipListeners]
* Skip componentresize event trigger
*
* @return {number}
* @return {number|undefined}
* The dimension when getting or 0 if unset
*/
dimension(widthOrHeight, num, skipListeners) {
@ -4875,7 +4873,7 @@
* delegates to `handleKeyDown`. This means anyone calling `handleKeyPress`
* will not see their method calls stop working.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to be called.
*/
handleKeyPress(event) {
@ -4887,7 +4885,7 @@
* support toggling the controls through a tap on the video. They get enabled
* because every sub-component would have extra overhead otherwise.
*
* @private
* @protected
* @fires Component#tap
* @listens Component#touchstart
* @listens Component#touchmove
@ -6524,7 +6522,7 @@
* Events that can be called with on + eventName. See {@link EventHandler}.
*
* @property {Object} TrackList#allowedEvents_
* @private
* @protected
*/
TrackList.prototype.allowedEvents_ = {
change: 'change',
@ -6574,7 +6572,7 @@
/**
* Create an instance of this class.
*
* @param {AudioTrack[]} [tracks=[]]
* @param { import('./audio-track').default[] } [tracks=[]]
* A list of `AudioTrack` to instantiate the list with.
*/
constructor(tracks = []) {
@ -8012,7 +8010,9 @@
*/
addCue(originalCue) {
let cue = originalCue;
if (cue.constructor && cue.constructor.name !== 'VTTCue') {
// Testing if the cue is a VTTCue in a way that survives minification
if (!('getCueAsHTML' in cue)) {
cue = new window.vttjs.VTTCue(originalCue.startTime, originalCue.endTime, originalCue.text);
for (const prop in originalCue) {
if (!(prop in cue)) {
@ -8055,6 +8055,7 @@
/**
* cuechange - One or more cues in the track have become active or stopped being active.
* @protected
*/
TextTrack.prototype.allowedEvents_ = {
cuechange: 'cuechange'
@ -8313,6 +8314,10 @@
});
}
}
/**
* @protected
*/
HTMLTrackElement.prototype.allowedEvents_ = {
load: 'load'
};
@ -10110,7 +10115,7 @@
* * `var SourceObject = {src: 'http://ex.com/video.mp4', type: 'video/mp4'};`
* `var SourceString = 'http://example.com/some-video.mp4';`
*
* @typedef {Object|string} Tech~SourceObject
* @typedef {Object|string} SourceObject
*
* @property {string} src
* The url to the source
@ -10546,7 +10551,7 @@
* > NOTE: This implementation is incomplete. It does not track the played `TimeRange`.
* It only checks whether the source has played at all or not.
*
* @return {TimeRange}
* @return { import('../utils/time').TimeRange }
* - A single time range if this video has played
* - An empty set of ranges if not.
*/
@ -11310,7 +11315,7 @@
*
* TODO: Answer question: should 'probably' be prioritized over 'maybe'
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* The source object
*
* @param {Object} options
@ -11335,7 +11340,7 @@
/**
* Check if the tech can support the given source.
*
* @param {Tech~SourceObject} srcObj
* @param {SourceObject} srcObj
* The source object
*
* @param {Object} options
@ -11390,7 +11395,7 @@
* and source handlers.
* Should never be called unless a source handler was found.
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* A source object with src and type keys
*/
_Tech.prototype.setSource = function (source) {
@ -12169,7 +12174,7 @@
*
* By default, if the key is Space or Enter, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -12925,7 +12930,7 @@
* This gets called when a `Button` has focus and `keydown` is triggered via a key
* press.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to get called.
*
* @listens keydown
@ -12979,7 +12984,7 @@
* This gets called when a `BigPlayButton` "clicked". See {@link ClickableComponent}
* for more detailed information on what a click can be.
*
* @param {KeyboardEvent} event
* @param {KeyboardEvent|MouseEvent|TouchEvent} event
* The `keydown`, `tap`, or `click` event that caused this function to be
* called.
*
@ -12990,7 +12995,7 @@
const playPromise = this.player_.play();
// exit early if clicked via the mouse
if (this.mouseused_ && event.clientX && event.clientY) {
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
silencePromise(playPromise);
if (this.player_.tech(true)) {
this.player_.tech(true).focus();
@ -13010,10 +13015,29 @@
this.setTimeout(playFocus, 1);
}
}
/**
* Event handler that is called when a `BigPlayButton` receives a
* `keydown` event.
*
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
*/
handleKeyDown(event) {
this.mouseused_ = false;
super.handleKeyDown(event);
}
/**
* Handle `mousedown` events on the `BigPlayButton`.
*
* @param {MouseEvent} event
* `mousedown` or `touchstart` event that triggered this function
*
* @listens mousedown
*/
handleMouseDown(event) {
this.mouseused_ = true;
}
@ -13099,7 +13123,7 @@
*
* By default, if the key is Esc, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -16726,7 +16750,7 @@
/**
* Handle a `keydown` event on this menu. This listener is added in the constructor.
*
* @param {Event} event
* @param {KeyboardEvent} event
* A `keydown` event that happened on the menu.
*
* @listens keydown
@ -17323,7 +17347,7 @@
* Ignore keys which are used by the menu, but pass any other ones up. See
* {@link ClickableComponent#handleKeyDown} for instances where this is called.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -22382,8 +22406,8 @@
*
* After an instance has been created it can be accessed globally in three ways:
* 1. By calling `videojs.getPlayer('example_video_1');`
* 2. By calling `videojs('example_video_1');` (not recomended)
* 2. By using it directly via `videojs.players.example_video_1;`
* 2. By calling `videojs('example_video_1');` (not recommended)
* 2. By using it directly via `videojs.players.example_video_1;`
*
* @extends Component
* @global
@ -24122,7 +24146,9 @@
*/
handleTechError_() {
const error = this.tech_.error();
this.error(error);
if (error) {
this.error(error);
}
}
/**
@ -25078,7 +25104,7 @@
* This allows player-wide hotkeys (either as defined below, or optionally
* by an external function).
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -27282,7 +27308,7 @@
* @param {Player} player
* A Video.js player instance.
*
* @param {Plugin~PluginEventHash} hash
* @param {PluginEventHash} hash
* A plugin event hash.
*
* @param {boolean} [before]
@ -27435,7 +27461,7 @@
* @param {Object} [hash={}]
* An object to be used as event an event hash.
*
* @return {Plugin~PluginEventHash}
* @return {PluginEventHash}
* An event hash object with provided properties mixed-in.
*/
getEventHash(hash = {}) {
@ -27454,7 +27480,7 @@
*
* @param {Object} [hash={}]
* Additional data hash to merge with a
* {@link Plugin~PluginEventHash|PluginEventHash}.
* {@link PluginEventHash|PluginEventHash}.
*
* @return {boolean}
* Whether or not default was prevented.
@ -27670,7 +27696,7 @@
* Signals that a plugin is about to be set up on a player.
*
* @event Player#beforepluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -27678,14 +27704,14 @@
* is the name of the plugin.
*
* @event Player#beforepluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* Signals that a plugin has just been set up on a player.
*
* @event Player#pluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -27693,11 +27719,11 @@
* is the name of the plugin.
*
* @event Player#pluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* @typedef {Object} Plugin~PluginEventHash
* @typedef {Object} PluginEventHash
*
* @property {string} instance
* For basic plugins, the return value of the plugin function. For
@ -28024,10 +28050,10 @@
* @param {string} name
* The class name of the component
*
* @param {Component} comp
* @param {typeof Component} comp
* The component class
*
* @return {Component}
* @return {typeof Component}
* The newly registered component
*/
videojs.registerComponent = (name, comp) => {
@ -28110,9 +28136,11 @@
*
* @param {string} name
* The plugin name
*
* @param {Plugin|Function} plugin
*
* @param {typeof Plugin|Function} plugin
* The plugin sub-class or function
*
* @return {typeof Plugin|Function}
*/
videojs.plugin = (name, plugin) => {
log.warn('videojs.plugin() is deprecated; use videojs.registerPlugin() instead');

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
/**
* @license
* Video.js 8.6.0 <http://videojs.com/>
* Video.js 8.6.1 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
@ -16,7 +16,7 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.videojs = factory());
})(this, (function () { 'use strict';
var version = "8.6.0";
var version = "8.6.1";
/**
* An Object that contains lifecycle hooks as keys which point to an array
@ -1996,7 +1996,7 @@
* @param {Element|Object} elem
* Element or object to bind listeners to
*
* @param {string} type
* @param {string[]} types
* Type of event to bind to.
*
* @param {Function} callback
@ -2719,7 +2719,7 @@
/**
* All event listeners should follow the following format.
*
* @callback EventTarget~EventListener
* @callback EventListener
* @this {EventTarget}
*
* @param {Event} event
@ -2736,7 +2736,7 @@
* will have extra functionality. See that function for more information.
*
* @property EventTarget.prototype.allowedEvents_
* @private
* @protected
*/
EventTarget.prototype.allowedEvents_ = {};
@ -4169,7 +4169,6 @@
/**
* Add a child `Component` inside the current `Component`.
*
*
* @param {string|Component} child
* The name or instance of a child to add.
*
@ -4180,6 +4179,7 @@
* @param {number} [index=this.children_.length]
* The index to attempt to add a child into.
*
*
* @return {Component}
* The `Component` that gets added as a child. When using a string the
* `Component` will get created by this process.
@ -4634,9 +4634,8 @@
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The width when getting, zero if there is no width
*/
width(num, skipListeners) {
return this.dimension('width', num, skipListeners);
@ -4652,9 +4651,8 @@
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The height when getting, zero if there is no height
*/
height(num, skipListeners) {
return this.dimension('height', num, skipListeners);
@ -4700,7 +4698,7 @@
* @param {boolean} [skipListeners]
* Skip componentresize event trigger
*
* @return {number}
* @return {number|undefined}
* The dimension when getting or 0 if unset
*/
dimension(widthOrHeight, num, skipListeners) {
@ -4875,7 +4873,7 @@
* delegates to `handleKeyDown`. This means anyone calling `handleKeyPress`
* will not see their method calls stop working.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to be called.
*/
handleKeyPress(event) {
@ -4887,7 +4885,7 @@
* support toggling the controls through a tap on the video. They get enabled
* because every sub-component would have extra overhead otherwise.
*
* @private
* @protected
* @fires Component#tap
* @listens Component#touchstart
* @listens Component#touchmove
@ -6524,7 +6522,7 @@
* Events that can be called with on + eventName. See {@link EventHandler}.
*
* @property {Object} TrackList#allowedEvents_
* @private
* @protected
*/
TrackList.prototype.allowedEvents_ = {
change: 'change',
@ -6574,7 +6572,7 @@
/**
* Create an instance of this class.
*
* @param {AudioTrack[]} [tracks=[]]
* @param { import('./audio-track').default[] } [tracks=[]]
* A list of `AudioTrack` to instantiate the list with.
*/
constructor(tracks = []) {
@ -8012,7 +8010,9 @@
*/
addCue(originalCue) {
let cue = originalCue;
if (cue.constructor && cue.constructor.name !== 'VTTCue') {
// Testing if the cue is a VTTCue in a way that survives minification
if (!('getCueAsHTML' in cue)) {
cue = new window.vttjs.VTTCue(originalCue.startTime, originalCue.endTime, originalCue.text);
for (const prop in originalCue) {
if (!(prop in cue)) {
@ -8055,6 +8055,7 @@
/**
* cuechange - One or more cues in the track have become active or stopped being active.
* @protected
*/
TextTrack.prototype.allowedEvents_ = {
cuechange: 'cuechange'
@ -8313,6 +8314,10 @@
});
}
}
/**
* @protected
*/
HTMLTrackElement.prototype.allowedEvents_ = {
load: 'load'
};
@ -8408,7 +8413,7 @@
* * `var SourceObject = {src: 'http://ex.com/video.mp4', type: 'video/mp4'};`
* `var SourceString = 'http://example.com/some-video.mp4';`
*
* @typedef {Object|string} Tech~SourceObject
* @typedef {Object|string} SourceObject
*
* @property {string} src
* The url to the source
@ -8844,7 +8849,7 @@
* > NOTE: This implementation is incomplete. It does not track the played `TimeRange`.
* It only checks whether the source has played at all or not.
*
* @return {TimeRange}
* @return { import('../utils/time').TimeRange }
* - A single time range if this video has played
* - An empty set of ranges if not.
*/
@ -9608,7 +9613,7 @@
*
* TODO: Answer question: should 'probably' be prioritized over 'maybe'
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* The source object
*
* @param {Object} options
@ -9633,7 +9638,7 @@
/**
* Check if the tech can support the given source.
*
* @param {Tech~SourceObject} srcObj
* @param {SourceObject} srcObj
* The source object
*
* @param {Object} options
@ -9688,7 +9693,7 @@
* and source handlers.
* Should never be called unless a source handler was found.
*
* @param {Tech~SourceObject} source
* @param {SourceObject} source
* A source object with src and type keys
*/
_Tech.prototype.setSource = function (source) {
@ -10467,7 +10472,7 @@
*
* By default, if the key is Space or Enter, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -11223,7 +11228,7 @@
* This gets called when a `Button` has focus and `keydown` is triggered via a key
* press.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to get called.
*
* @listens keydown
@ -11277,7 +11282,7 @@
* This gets called when a `BigPlayButton` "clicked". See {@link ClickableComponent}
* for more detailed information on what a click can be.
*
* @param {KeyboardEvent} event
* @param {KeyboardEvent|MouseEvent|TouchEvent} event
* The `keydown`, `tap`, or `click` event that caused this function to be
* called.
*
@ -11288,7 +11293,7 @@
const playPromise = this.player_.play();
// exit early if clicked via the mouse
if (this.mouseused_ && event.clientX && event.clientY) {
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
silencePromise(playPromise);
if (this.player_.tech(true)) {
this.player_.tech(true).focus();
@ -11308,10 +11313,29 @@
this.setTimeout(playFocus, 1);
}
}
/**
* Event handler that is called when a `BigPlayButton` receives a
* `keydown` event.
*
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
*/
handleKeyDown(event) {
this.mouseused_ = false;
super.handleKeyDown(event);
}
/**
* Handle `mousedown` events on the `BigPlayButton`.
*
* @param {MouseEvent} event
* `mousedown` or `touchstart` event that triggered this function
*
* @listens mousedown
*/
handleMouseDown(event) {
this.mouseused_ = true;
}
@ -11397,7 +11421,7 @@
*
* By default, if the key is Esc, it will trigger a `click` event.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -15024,7 +15048,7 @@
/**
* Handle a `keydown` event on this menu. This listener is added in the constructor.
*
* @param {Event} event
* @param {KeyboardEvent} event
* A `keydown` event that happened on the menu.
*
* @listens keydown
@ -15621,7 +15645,7 @@
* Ignore keys which are used by the menu, but pass any other ones up. See
* {@link ClickableComponent#handleKeyDown} for instances where this is called.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -20680,8 +20704,8 @@
*
* After an instance has been created it can be accessed globally in three ways:
* 1. By calling `videojs.getPlayer('example_video_1');`
* 2. By calling `videojs('example_video_1');` (not recomended)
* 2. By using it directly via `videojs.players.example_video_1;`
* 2. By calling `videojs('example_video_1');` (not recommended)
* 2. By using it directly via `videojs.players.example_video_1;`
*
* @extends Component
* @global
@ -22420,7 +22444,9 @@
*/
handleTechError_() {
const error = this.tech_.error();
this.error(error);
if (error) {
this.error(error);
}
}
/**
@ -23376,7 +23402,7 @@
* This allows player-wide hotkeys (either as defined below, or optionally
* by an external function).
*
* @param {Event} event
* @param {KeyboardEvent} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
@ -25580,7 +25606,7 @@
* @param {Player} player
* A Video.js player instance.
*
* @param {Plugin~PluginEventHash} hash
* @param {PluginEventHash} hash
* A plugin event hash.
*
* @param {boolean} [before]
@ -25733,7 +25759,7 @@
* @param {Object} [hash={}]
* An object to be used as event an event hash.
*
* @return {Plugin~PluginEventHash}
* @return {PluginEventHash}
* An event hash object with provided properties mixed-in.
*/
getEventHash(hash = {}) {
@ -25752,7 +25778,7 @@
*
* @param {Object} [hash={}]
* Additional data hash to merge with a
* {@link Plugin~PluginEventHash|PluginEventHash}.
* {@link PluginEventHash|PluginEventHash}.
*
* @return {boolean}
* Whether or not default was prevented.
@ -25968,7 +25994,7 @@
* Signals that a plugin is about to be set up on a player.
*
* @event Player#beforepluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -25976,14 +26002,14 @@
* is the name of the plugin.
*
* @event Player#beforepluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* Signals that a plugin has just been set up on a player.
*
* @event Player#pluginsetup
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
@ -25991,11 +26017,11 @@
* is the name of the plugin.
*
* @event Player#pluginsetup:$name
* @type {Plugin~PluginEventHash}
* @type {PluginEventHash}
*/
/**
* @typedef {Object} Plugin~PluginEventHash
* @typedef {Object} PluginEventHash
*
* @property {string} instance
* For basic plugins, the return value of the plugin function. For
@ -26322,10 +26348,10 @@
* @param {string} name
* The class name of the component
*
* @param {Component} comp
* @param {typeof Component} comp
* The component class
*
* @return {Component}
* @return {typeof Component}
* The newly registered component
*/
videojs.registerComponent = (name, comp) => {
@ -26408,9 +26434,11 @@
*
* @param {string} name
* The plugin name
*
* @param {Plugin|Function} plugin
*
* @param {typeof Plugin|Function} plugin
* The plugin sub-class or function
*
* @return {typeof Plugin|Function}
*/
videojs.plugin = (name, plugin) => {
log.warn('videojs.plugin() is deprecated; use videojs.registerPlugin() instead');

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,26 +1,97 @@
videojs.addLanguage('ca', {
"Play": "Reproducció",
"Audio Player": "Reproductor d'àudio",
"Video Player": "Reproductor de vídeo",
"Play": "Reproduir",
"Pause": "Pausa",
"Current Time": "Temps reproduït",
"Duration": "Durada total",
"Replay": "Repetir",
"Current Time": "Temps actual",
"Duration": "Durada",
"Remaining Time": "Temps restant",
"Stream Type": "Tipus de seqüència",
"Stream Type": "Tipus d'emissió",
"LIVE": "EN DIRECTE",
"Seek to live, currently behind live": "Anar en directe, actualment darrere de la retransmissió en directe",
"Seek to live, currently playing live": "Anar en directe, actualment en directe",
"Loaded": "Carregat",
"Progress": "Progrés",
"Progress Bar": "Barra de progrés",
"progress bar timing: currentTime={1} duration={2}": "{1} de {2}",
"Fullscreen": "Pantalla completa",
"Exit Fullscreen": "Pantalla no completa",
"Mute": "Silencia",
"Unmute": "Amb so",
"Exit Fullscreen": "Sortir de pantalla completa",
"Mute": "Silenciar",
"Unmute": "Activar el so",
"Playback Rate": "Velocitat de reproducció",
"Subtitles": "Subtítols",
"subtitles off": "Subtítols desactivats",
"subtitles off": "Desactivar subtítols",
"Captions": "Llegendes",
"captions off": "Llegendes desactivades",
"captions off": "Desactivar llegendes",
"Chapters": "Capítols",
"You aborted the media playback": "Heu interromput la reproducció del vídeo.",
"A network error caused the media download to fail part-way.": "Un error de la xarxa ha interromput la baixada del vídeo.",
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.",
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducció de vídeo s'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.",
"No compatible source was found for this media.": "No s'ha trobat cap font compatible amb el vídeo."
"Descriptions": "Descripcions",
"descriptions off": "Desactivar descripcions",
"Audio Track": "Pista d'àudio",
"Volume Level": "Nivell de volum",
"You aborted the media playback": "Has interromput la reproducció del contingut",
"A network error caused the media download to fail part-way.": "Un error de xarxa ha interromput la descàrrega del contingut.",
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el contingut, ja sigui perquè el servidor o la xarxa han fallat o perquè el format no està suportat.",
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducció del contingut s'ha interromput a causa d'un problema de corrupció o perquè el contingut fa servir funcions que el teu navegador no suporta.",
"No compatible source was found for this media.": "No s'ha trobat una font compatible per a aquest contingut.",
"The media is encrypted and we do not have the keys to decrypt it.": "El contingut està xifrat i no disposem de les claus per desxifrar-lo.",
"Play Video": "Reproduir vídeo",
"Close": "Tancar",
"Close Modal Dialog": "Tancar el diàleg modal",
"Modal Window": "Finestra modal",
"This is a modal window": "Aquesta és una finestra modal",
"This modal can be closed by pressing the Escape key or activating the close button.": "Aquesta finestra es pot tancar prement la tecla Escape o activant el botó de tancar.",
", opens captions settings dialog": ", obre el diàleg de configuració de subtítols",
", opens subtitles settings dialog": ", obre el diàleg de configuració de subtítols",
", opens descriptions settings dialog": ", obre el diàleg de configuració de descripcions",
", selected": ", seleccionat",
"captions settings": "configuració de subtítols",
"subtitles settings": "configuració de subtítols",
"descriptions settings": "configuració de descripcions",
"Text": "Text",
"White": "Blanc",
"Black": "Negre",
"Red": "Vermell",
"Green": "Verd",
"Blue": "Blau",
"Yellow": "Groc",
"Magenta": "Magenta",
"Cyan": "Cian",
"Background": "Fons",
"Window": "Finestra",
"Transparent": "Transparent",
"Semi-Transparent": "Semi-transparent",
"Opaque": "Opac",
"Font Size": "Mida de la lletra",
"Text Edge Style": "Estil de la vora del text",
"None": "Cap",
"Raised": "Rellevat",
"Depressed": "Premut",
"Uniform": "Uniforme",
"Drop shadow": "Ombra",
"Font Family": "Família tipogràfica",
"Proportional Sans-Serif": "Sense serif proporcional",
"Monospace Sans-Serif": "Monoespaiada sense serif",
"Proportional Serif": "Serif proporcional",
"Monospace Serif": "Monoespaiada amb serif",
"Casual": "Desenfadada",
"Script": "Script",
"Small Caps": "Minúscules",
"Reset": "Restablir",
"restore all settings to the default values": "restaurar totes les configuracions als valors predeterminats",
"Done": "Fet",
"Caption Settings Dialog": "Diàleg de configuració de subtítols",
"Beginning of dialog window. Escape will cancel and close the window.": "Inici del diàleg. L'Escape cancel·larà i tancarà la finestra.",
"End of dialog window.": "Fi del diàleg.",
"{1} is loading.": "S'està carregant {1}.",
"Exit Picture-in-Picture": "Sortir de la imatge en imatge",
"Picture-in-Picture": "Imatge en imatge",
"No content": "Sense contingut",
"Color": "Color",
"Opacity": "Opacitat",
"Text Background": "Fons del text",
"Caption Area Background": "Fons de l'àrea de subtítols",
"Playing in Picture-in-Picture": "Reproduint en imatge en imatge",
"Skip backward {1} seconds": "Salta enrere {1} segons",
"Skip forward {1} seconds": "Salta endavant {1} segons"
});

View file

@ -1,26 +1,97 @@
{
"Play": "Reproducció",
"Audio Player": "Reproductor d'àudio",
"Video Player": "Reproductor de vídeo",
"Play": "Reproduir",
"Pause": "Pausa",
"Current Time": "Temps reproduït",
"Duration": "Durada total",
"Replay": "Repetir",
"Current Time": "Temps actual",
"Duration": "Durada",
"Remaining Time": "Temps restant",
"Stream Type": "Tipus de seqüència",
"Stream Type": "Tipus d'emissió",
"LIVE": "EN DIRECTE",
"Seek to live, currently behind live": "Anar en directe, actualment darrere de la retransmissió en directe",
"Seek to live, currently playing live": "Anar en directe, actualment en directe",
"Loaded": "Carregat",
"Progress": "Progrés",
"Progress Bar": "Barra de progrés",
"progress bar timing: currentTime={1} duration={2}": "{1} de {2}",
"Fullscreen": "Pantalla completa",
"Exit Fullscreen": "Pantalla no completa",
"Mute": "Silencia",
"Unmute": "Amb so",
"Exit Fullscreen": "Sortir de pantalla completa",
"Mute": "Silenciar",
"Unmute": "Activar el so",
"Playback Rate": "Velocitat de reproducció",
"Subtitles": "Subtítols",
"subtitles off": "Subtítols desactivats",
"subtitles off": "Desactivar subtítols",
"Captions": "Llegendes",
"captions off": "Llegendes desactivades",
"captions off": "Desactivar llegendes",
"Chapters": "Capítols",
"You aborted the media playback": "Heu interromput la reproducció del vídeo.",
"A network error caused the media download to fail part-way.": "Un error de la xarxa ha interromput la baixada del vídeo.",
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.",
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducció de vídeo s'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.",
"No compatible source was found for this media.": "No s'ha trobat cap font compatible amb el vídeo."
"Descriptions": "Descripcions",
"descriptions off": "Desactivar descripcions",
"Audio Track": "Pista d'àudio",
"Volume Level": "Nivell de volum",
"You aborted the media playback": "Has interromput la reproducció del contingut",
"A network error caused the media download to fail part-way.": "Un error de xarxa ha interromput la descàrrega del contingut.",
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el contingut, ja sigui perquè el servidor o la xarxa han fallat o perquè el format no està suportat.",
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducció del contingut s'ha interromput a causa d'un problema de corrupció o perquè el contingut fa servir funcions que el teu navegador no suporta.",
"No compatible source was found for this media.": "No s'ha trobat una font compatible per a aquest contingut.",
"The media is encrypted and we do not have the keys to decrypt it.": "El contingut està xifrat i no disposem de les claus per desxifrar-lo.",
"Play Video": "Reproduir vídeo",
"Close": "Tancar",
"Close Modal Dialog": "Tancar el diàleg modal",
"Modal Window": "Finestra modal",
"This is a modal window": "Aquesta és una finestra modal",
"This modal can be closed by pressing the Escape key or activating the close button.": "Aquesta finestra es pot tancar prement la tecla Escape o activant el botó de tancar.",
", opens captions settings dialog": ", obre el diàleg de configuració de subtítols",
", opens subtitles settings dialog": ", obre el diàleg de configuració de subtítols",
", opens descriptions settings dialog": ", obre el diàleg de configuració de descripcions",
", selected": ", seleccionat",
"captions settings": "configuració de subtítols",
"subtitles settings": "configuració de subtítols",
"descriptions settings": "configuració de descripcions",
"Text": "Text",
"White": "Blanc",
"Black": "Negre",
"Red": "Vermell",
"Green": "Verd",
"Blue": "Blau",
"Yellow": "Groc",
"Magenta": "Magenta",
"Cyan": "Cian",
"Background": "Fons",
"Window": "Finestra",
"Transparent": "Transparent",
"Semi-Transparent": "Semi-transparent",
"Opaque": "Opac",
"Font Size": "Mida de la lletra",
"Text Edge Style": "Estil de la vora del text",
"None": "Cap",
"Raised": "Rellevat",
"Depressed": "Premut",
"Uniform": "Uniforme",
"Drop shadow": "Ombra",
"Font Family": "Família tipogràfica",
"Proportional Sans-Serif": "Sense serif proporcional",
"Monospace Sans-Serif": "Monoespaiada sense serif",
"Proportional Serif": "Serif proporcional",
"Monospace Serif": "Monoespaiada amb serif",
"Casual": "Desenfadada",
"Script": "Script",
"Small Caps": "Minúscules",
"Reset": "Restablir",
"restore all settings to the default values": "restaurar totes les configuracions als valors predeterminats",
"Done": "Fet",
"Caption Settings Dialog": "Diàleg de configuració de subtítols",
"Beginning of dialog window. Escape will cancel and close the window.": "Inici del diàleg. L'Escape cancel·larà i tancarà la finestra.",
"End of dialog window.": "Fi del diàleg.",
"{1} is loading.": "S'està carregant {1}.",
"Exit Picture-in-Picture": "Sortir de la imatge en imatge",
"Picture-in-Picture": "Imatge en imatge",
"No content": "Sense contingut",
"Color": "Color",
"Opacity": "Opacitat",
"Text Background": "Fons del text",
"Caption Area Background": "Fons de l'àrea de subtítols",
"Playing in Picture-in-Picture": "Reproduint en imatge en imatge",
"Skip backward {1} seconds": "Salta enrere {1} segons",
"Skip forward {1} seconds": "Salta endavant {1} segons"
}

View file

@ -12,16 +12,23 @@ declare class BigPlayButton extends Button {
* This gets called when a `BigPlayButton` "clicked". See {@link ClickableComponent}
* for more detailed information on what a click can be.
*
* @param {KeyboardEvent} event
* @param {KeyboardEvent|MouseEvent|TouchEvent} event
* The `keydown`, `tap`, or `click` event that caused this function to be
* called.
*
* @listens tap
* @listens click
*/
handleClick(event: KeyboardEvent): void;
handleKeyDown(event: any): void;
handleMouseDown(event: any): void;
handleClick(event: KeyboardEvent | MouseEvent | TouchEvent): void;
/**
* Handle `mousedown` events on the `BigPlayButton`.
*
* @param {MouseEvent} event
* `mousedown` or `touchstart` event that triggered this function
*
* @listens mousedown
*/
handleMouseDown(event: MouseEvent): void;
}
import Button from "./button.js";
//# sourceMappingURL=big-play-button.d.ts.map

View file

@ -1 +1 @@
{"version":3,"file":"big-play-button.d.ts","sourceRoot":"","sources":["../../src/js/big-play-button.js"],"names":[],"mappings":";AAOA;;;;;GAKG;AACH;IACE,uCAQC;IALC,oBAAuB;IAiBzB;;;;;;;;;;OAUG;IACH,mBAPW,aAAa,QAoCvB;IAED,gCAIC;IAED,kCAEC;CACF"}
{"version":3,"file":"big-play-button.d.ts","sourceRoot":"","sources":["../../src/js/big-play-button.js"],"names":[],"mappings":";AAOA;;;;;GAKG;AACH;IACE,uCAQC;IALC,oBAAuB;IAiBzB;;;;;;;;;;OAUG;IACH,mBAPW,aAAa,GAAC,UAAU,GAAC,UAAU,QAoC7C;IAiBD;;;;;;;OAOG;IACH,uBALW,UAAU,QAOpB;CACF"}

View file

@ -83,18 +83,6 @@ declare class ClickableComponent extends Component {
* @abstract
*/
handleClick(event: Event, ...args: any[]): void;
/**
* Event handler that is called when a `ClickableComponent` receives a
* `keydown` event.
*
* By default, if the key is Space or Enter, it will trigger a `click` event.
*
* @param {Event} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
*/
handleKeyDown(event: Event): void;
}
import Component from "./component";
//# sourceMappingURL=clickable-component.d.ts.map

View file

@ -1 +1 @@
{"version":3,"file":"clickable-component.d.ts","sourceRoot":"","sources":["../../src/js/clickable-component.js"],"names":[],"mappings":";AAQA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAhBa,OAAO,UAAU,EAAE,OAAO;QAMR,YAAY;QAGd,WAAW,GAA5B,MAAM;QAGW,SAAS,GAA1B,MAAM;OAoBjB;IARC,kCAAsD;IACtD,iCAAoD;IACpD,+BAA8C;IAC9C,iCAAkD;IAqClD,eAA+B;IAiBjC,gBAKC;IAHC,wBAA0B;IAK5B;;;;;;;;OAQG;IACH,yBANW,OAAO,GAGN,OAAO,CAkBlB;IAED;;;;;;;;;;;OAWG;IACH,mBATW,MAAM,OAGN,OAAO,GAGN,MAAM,CAiBjB;IAPC,iBAAiB;IACjB,+BAAwB;IAkB1B;;OAEG;IACH,eAWC;IATG,kBAAoB;IAWxB;;OAEG;IACH,gBAWC;IAWD;;;;;;;;;;OAUG;IACH,mBAPW,KAAK,wBAWf;IAED;;;;;;;;;;OAUG;IACH,qBALW,KAAK,QAmBf;CACF"}
{"version":3,"file":"clickable-component.d.ts","sourceRoot":"","sources":["../../src/js/clickable-component.js"],"names":[],"mappings":";AAQA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAhBa,OAAO,UAAU,EAAE,OAAO;QAMR,YAAY;QAGd,WAAW,GAA5B,MAAM;QAGW,SAAS,GAA1B,MAAM;OAoBjB;IARC,kCAAsD;IACtD,iCAAoD;IACpD,+BAA8C;IAC9C,iCAAkD;IAqClD,eAA+B;IAiBjC,gBAKC;IAHC,wBAA0B;IAK5B;;;;;;;;OAQG;IACH,yBANW,OAAO,GAGN,OAAO,CAkBlB;IAED;;;;;;;;;;;OAWG;IACH,mBATW,MAAM,OAGN,OAAO,GAGN,MAAM,CAiBjB;IAPC,iBAAiB;IACjB,+BAAwB;IAkB1B;;OAEG;IACH,eAWC;IATG,kBAAoB;IAWxB;;OAEG;IACH,gBAWC;IAWD;;;;;;;;;;OAUG;IACH,mBAPW,KAAK,wBAWf;CA4BF"}

View file

@ -339,7 +339,6 @@ declare class Component {
/**
* Add a child `Component` inside the current `Component`.
*
*
* @param {string|Component} child
* The name or instance of a child to add.
*
@ -350,6 +349,7 @@ declare class Component {
* @param {number} [index=this.children_.length]
* The index to attempt to add a child into.
*
*
* @return {Component}
* The `Component` that gets added as a child. When using a string the
* `Component` will get created by this process.
@ -542,11 +542,10 @@ declare class Component {
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The width when getting, zero if there is no width
*/
width(num?: number | string, skipListeners?: boolean): number | string;
width(num?: number | string, skipListeners?: boolean): number | undefined;
/**
* Get or set the height of the component based upon the CSS styles.
* See {@link Component#dimension} for more detailed information.
@ -557,11 +556,10 @@ declare class Component {
* @param {boolean} [skipListeners]
* Skip the componentresize event trigger
*
* @return {number|string}
* The width when getting, zero if there is no width. Can be a string
* postpixed with '%' or 'px'.
* @return {number|undefined}
* The height when getting, zero if there is no height
*/
height(num?: number | string, skipListeners?: boolean): number | string;
height(num?: number | string, skipListeners?: boolean): number | undefined;
/**
* Set both the width and height of the `Component` element at the same time.
*
@ -597,10 +595,10 @@ declare class Component {
* @param {boolean} [skipListeners]
* Skip componentresize event trigger
*
* @return {number}
* @return {number|undefined}
* The dimension when getting or 0 if unset
*/
dimension(widthOrHeight: string, num?: number | string, skipListeners?: boolean): number;
dimension(widthOrHeight: string, num?: number | string, skipListeners?: boolean): number | undefined;
/**
* Get the computed width or the height of the component's element.
*
@ -676,16 +674,16 @@ declare class Component {
* delegates to `handleKeyDown`. This means anyone calling `handleKeyPress`
* will not see their method calls stop working.
*
* @param {Event} event
* @param {KeyboardEvent} event
* The event that caused this function to be called.
*/
handleKeyPress(event: Event): void;
handleKeyPress(event: KeyboardEvent): void;
/**
* Emit a 'tap' events when touch event support gets detected. This gets used to
* support toggling the controls through a tap on the video. They get enabled
* because every sub-component would have extra overhead otherwise.
*
* @private
* @protected
* @fires Component#tap
* @listens Component#touchstart
* @listens Component#touchmove
@ -694,7 +692,7 @@ declare class Component {
* @listens Component#touchend
*/
private emitTapEvents;
protected emitTapEvents(): void;
/**
* This function reports user activity whenever touch events happen. This can get
* turned off by any sub-components that wants touch events to act another way.

View file

@ -1 +1 @@
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/js/component.js"],"names":[],"mappings":";AAgBA;;;;;;;GAOG;AACH;IAitDE;;;;;;;;;;;;;;;;;;OAkBG;IACH,+BATW,MAAM,uBAGN,SAAS,GAGR,SAAS,CAsDpB;IAED;;;;;;;;OAQG;IACH,0BANW,MAAM,GAGL,SAAS,CASpB;IAtyDD;;;;;;OAMG;IAEH;;;;;;;;;;;;;;;;;;;OAmBG;IACH,oBAjBY,OAAO,UAAU,EAAE,OAAO;QAMR,QAAQ,GAA3B,KAAQ;QAKU,SAAS,GAA1B,MAAM;0BAyFjB;IA/EG,aAA4B;IAK9B,qBAAwB;IAGxB,sBAA4B;IAG5B,cAAwC;IAMxC,SAAsD;IAUtD,WAAiC;IAI/B,SAAqB;IA2UzB;;;;OAIG;IACH,6BAAyB;IAvTvB,iBAAmB;IACnB,gBAAqB;IACrB,oBAAyB;IAEzB,yBAA+B;IAC/B,0BAAgC;IAChC,kBAAwB;IACxB,0BAA2B;IAC3B,kCAAqC;IAoBvC;;;;;;;;;OASG;IACH,SANW,MAAM,GAAC,MAAM,EAAE,sBAMX;IAEf;;;;;;;;;;OAUG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAMV;IAEhB;;;;;;;;;;OAUG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAMV;IAEhB;;;;;;;;;;;OAWG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAMV;IAEhB;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAPW,MAAM,GAAC,KAAK,MAAO,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ACH,cAEC;IAED;;OAEG;IACH,aAEC;IAED;;;;;;OAMG;IACH,qBAHW,aAAa,QAavB;IAED;;;;;;;;OAQG;IACH,sBAHW,KAAK,QAKf;IAED;;;;;;;;;;;;;OAaG;IACH,sBAiFC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,4BA8BC;IAED;;;;;OAKG;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,6BAXW,MAAM,GAGL,MAAM,CA2BjB;IAED;;;;;;;;;;;;;;OAcG;IACH,wBATW,MAAM,GAIL,MAAM,CAYjB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,+BAVW,MAAM,GAGL,MAAM,CAiBjB;IAED;;;;;;;;;;;;;;OAcG;IACH,0BATW,MAAM,GAIL,MAAM,CAYjB;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,gCARY,MAAM,CAyBjB;IAED;;;;;;;;;;;OAWG;IACH,iCAPW,MAAM,mBAyBhB;IAED;;;;;OAKG;IACH,gCAHW,MAAM,QAUhB;IAED;;;;;;;;;;;;;;;OAeG;IACH,yBARW,MAAM,GAGL,MAAM,CAajB;IAED;;;;;;;;;OASG;IACH,8BAqBC;CA0FF"}
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/js/component.js"],"names":[],"mappings":";AAgBA;;;;;;;GAOG;AACH;IA+sDE;;;;;;;;;;;;;;;;;;OAkBG;IACH,+BATW,MAAM,uBAGN,SAAS,GAGR,SAAS,CAsDpB;IAED;;;;;;;;OAQG;IACH,0BANW,MAAM,GAGL,SAAS,CASpB;IApyDD;;;;;;OAMG;IAEH;;;;;;;;;;;;;;;;;;;OAmBG;IACH,oBAjBY,OAAO,UAAU,EAAE,OAAO;QAMR,QAAQ,GAA3B,KAAQ;QAKU,SAAS,GAA1B,MAAM;0BAyFjB;IA/EG,aAA4B;IAK9B,qBAAwB;IAGxB,sBAA4B;IAG5B,cAAwC;IAMxC,SAAsD;IAUtD,WAAiC;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;;;;OASG;IACH,8BAqBC;CA0FF"}

View file

@ -82,6 +82,16 @@ declare class VolumePanel extends Component {
* @listens mouseout
*/
handleMouseOut(event: Event): void;
/**
* Handles `keyup` event on the document or `keydown` event on the `VolumePanel`,
* looking for ESC, which hides the `VolumeControl`.
*
* @param {Event} event
* The keypress that triggered this event.
*
* @listens keydown | keyup
*/
handleKeyPress(event: Event): void;
}
import Component from "../component.js";
//# sourceMappingURL=volume-panel.d.ts.map

View file

@ -1 +1 @@
{"version":3,"file":"volume-panel.d.ts","sourceRoot":"","sources":["../../../src/js/control-bar/volume-panel.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEE;;;;;;;;OAQG;IACH,wCA+BC;IAdC,yCAA2D;IAgB7D;;;;;OAKG;IACH,sBAEC;IAED;;;;;OAKG;IACH,wBAEC;IAED;;;;;;OAMG;IACH,0BAYC;IAED;;;;;OAKG;IACH,YAHY,OAAO,CAalB;IAED;;OAEG;IACH,gBAGC;IAED;;;;;;;;OAQG;IACH,gCALW,KAAK,QASf;IAED;;;;;;;;;OASG;IACH,uBALW,KAAK,QAQf;IAED;;;;;;;;;OASG;IACH,sBALW,KAAK,QAQf;CAgBF"}
{"version":3,"file":"volume-panel.d.ts","sourceRoot":"","sources":["../../../src/js/control-bar/volume-panel.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEE;;;;;;;;OAQG;IACH,wCA+BC;IAdC,yCAA2D;IAgB7D;;;;;OAKG;IACH,sBAEC;IAED;;;;;OAKG;IACH,wBAEC;IAED;;;;;;OAMG;IACH,0BAYC;IAED;;;;;OAKG;IACH,YAHY,OAAO,CAalB;IAED;;OAEG;IACH,gBAGC;IAED;;;;;;;;OAQG;IACH,gCALW,KAAK,QASf;IAED;;;;;;;;;OASG;IACH,uBALW,KAAK,QAQf;IAED;;;;;;;;;OASG;IACH,sBALW,KAAK,QAQf;IAED;;;;;;;;OAQG;IACH,sBALW,KAAK,QASf;CACF"}

View file

@ -4,9 +4,9 @@ export default EventTarget;
*/
export type Event = CustomEvent;
/**
* ~EventListener
* All event listeners should follow the following format.
*/
export type EventTarget = () => any;
export type EventListener = () => any;
/**
* `EventTarget` is a class that can have the same API as the DOM `EventTarget`. It
* adds shorthand functions that wrap around lengthy functions. For example:
@ -92,7 +92,7 @@ declare class EventTarget {
/**
* All event listeners should follow the following format.
*
* @callback EventTarget~EventListener
* @callback EventListener
* @this {EventTarget}
*
* @param {Event} event
@ -108,9 +108,9 @@ declare class EventTarget {
* will have extra functionality. See that function for more information.
*
* @property EventTarget.prototype.allowedEvents_
* @private
* @protected
*/
private allowedEvents_;
protected allowedEvents_: {};
/**
* An alias of {@link EventTarget#off}. Allows `EventTarget` to mimic
* the standard DOM API.

View file

@ -1 +1 @@
{"version":3,"file":"event-target.d.ts","sourceRoot":"","sources":["../../src/js/event-target.js"],"names":[],"mappings":";;;;oBAmKa,WAAW;;;;;AA3JxB;;;;;;;GAOG;AACH;IACE;;;;;;;;;OASG;IACH,SANW,MAAM,GAAC,MAAM,EAAE,sBAczB;IAHC,sBAAiC;IAInC;;;;;;;;;;OAUG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAQzB;IACD;;;;;;;;;;OAUG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAczB;IACD;;;;;;;;;;;OAWG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAczB;IACD;;;;;;;;;;;;;;;OAeG;IACH,0BAkBC;IACD,+BA+BC;IAGH;;;;;OAKG;IAEH;;;;;;;;;;;OAWG;IAEH;;;;;;;;OAQG;IACH,uBAAoC;IAWpC;;;;;;OAMG;IACH,4BAtKa,MAAM,GAAC,MAAM,EAAE,wBAsKa;IAEzC;;;;;;OAMG;IACH,oCAAmC;CA1DlC"}
{"version":3,"file":"event-target.d.ts","sourceRoot":"","sources":["../../src/js/event-target.js"],"names":[],"mappings":";;;;oBAmKa,WAAW;;;;;AA3JxB;;;;;;;GAOG;AACH;IACE;;;;;;;;;OASG;IACH,SANW,MAAM,GAAC,MAAM,EAAE,sBAczB;IAHC,sBAAiC;IAInC;;;;;;;;;;OAUG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAQzB;IACD;;;;;;;;;;OAUG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAczB;IACD;;;;;;;;;;;OAWG;IACH,UANW,MAAM,GAAC,MAAM,EAAE,sBAczB;IACD;;;;;;;;;;;;;;;OAeG;IACH,0BAkBC;IACD,+BA+BC;IAGH;;;;;OAKG;IAEH;;;;;;;;;;;OAWG;IAEH;;;;;;;;OAQG;IACH,6BAAoC;IAWpC;;;;;;OAMG;IACH,4BAtKa,MAAM,GAAC,MAAM,EAAE,wBAsKa;IAEzC;;;;;;OAMG;IACH,oCAAmC;CA1DlC"}

View file

@ -82,15 +82,6 @@ declare class Menu extends Component {
* @listens click,tap
*/
handleTapClick(event: Event): void;
/**
* Handle a `keydown` event on this menu. This listener is added in the constructor.
*
* @param {Event} event
* A `keydown` event that happened on the menu.
*
* @listens keydown
*/
handleKeyDown(event: Event): void;
/**
* Move to next (lower) menu item for keyboard users.
*/

View file

@ -1 +1 @@
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/js/menu/menu.js"],"names":[],"mappings":";AASA;;;;;GAKG;AACH;IAEE;;;;;;;;;OASG;IACH,oBAPY,OAAO,WAAW,EAAE,OAAO,iBAqBtC;IAVG,iBAAqC;IAGvC,sBAAuB;IAKvB,mCAAiD;IACjD,uCAAyD;IAG3D;;;;;;OAMG;IACH,8CAOC;IAED;;;;;;OAMG;IACH,iDAOC;IAED;;;;;;;;OAQG;IACH,kCAOC;IAED;;;;;;OAMG;IACH,mBAJW,MAAO,MAAM,QAUvB;IAED;;;;;OAKG;IACH,YAHY,OAAO,CA2BlB;IArBC,oBAEE;IAqBJ,gBAMC;IAED;;;;;;;OAOG;IACH,kBALW,KAAK,QAkBf;IAED;;;;;;;OAOG;IACH,sBALW,KAAK,QA4Bf;IAED;;;;;;;OAOG;IACH,qBALW,KAAK,QAmBf;IAED;;OAEG;IACH,oBAOC;IAED;;OAEG;IACH,iBAOC;IAED;;;;;OAKG;IACH,aAHW,MAAO,MAAM,QAsBvB;CACF"}
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/js/menu/menu.js"],"names":[],"mappings":";AASA;;;;;GAKG;AACH;IAEE;;;;;;;;;OASG;IACH,oBAPY,OAAO,WAAW,EAAE,OAAO,iBAqBtC;IAVG,iBAAqC;IAGvC,sBAAuB;IAKvB,mCAAiD;IACjD,uCAAyD;IAG3D;;;;;;OAMG;IACH,8CAOC;IAED;;;;;;OAMG;IACH,iDAOC;IAED;;;;;;;;OAQG;IACH,kCAOC;IAED;;;;;;OAMG;IACH,mBAJW,MAAO,MAAM,QAUvB;IAED;;;;;OAKG;IACH,YAHY,OAAO,CA2BlB;IArBC,oBAEE;IAqBJ,gBAMC;IAED;;;;;;;OAOG;IACH,kBALW,KAAK,QAkBf;IAED;;;;;;;OAOG;IACH,sBALW,KAAK,QA4Bf;IA0BD;;OAEG;IACH,oBAOC;IAED;;OAEG;IACH,iBAOC;IAED;;;;;OAKG;IACH,aAHW,MAAO,MAAM,QAsBvB;CACF"}

View file

@ -5,8 +5,8 @@ export default Player;
*
* After an instance has been created it can be accessed globally in three ways:
* 1. By calling `videojs.getPlayer('example_video_1');`
* 2. By calling `videojs('example_video_1');` (not recomended)
* 2. By using it directly via `videojs.players.example_video_1;`
* 2. By calling `videojs('example_video_1');` (not recommended)
* 2. By using it directly via `videojs.players.example_video_1;`
*
* @extends Component
* @global
@ -964,18 +964,6 @@ declare class Player extends Component {
* A promise.
*/
exitPictureInPicture(): Promise<any>;
/**
* Called when this Player has focus and a key gets pressed down, or when
* any Component of this player receives a key press that it doesn't handle.
* This allows player-wide hotkeys (either as defined below, or optionally
* by an external function).
*
* @param {Event} event
* The `keydown` event that caused this function to be called.
*
* @listens keydown
*/
handleKeyDown(event: Event): void;
/**
* Called when this Player receives a hotkey keydown event.
* Supported player-wide hotkeys are:

File diff suppressed because one or more lines are too long

View file

@ -1,8 +1,5 @@
export default Plugin;
/**
* ~PluginEventHash
*/
export type Plugin = {
export type PluginEventHash = {
/**
* For basic plugins, the return value of the plugin function. For
* advanced plugins, the plugin instance on which the event is fired.
@ -126,10 +123,10 @@ declare class Plugin {
* @param {Object} [hash={}]
* An object to be used as event an event hash.
*
* @return {Plugin~PluginEventHash}
* @return {PluginEventHash}
* An event hash object with provided properties mixed-in.
*/
getEventHash(hash?: any): Plugin;
getEventHash(hash?: any): PluginEventHash;
/**
* Triggers an event on the plugin object and overrides
* {@link module:evented~EventedMixin.trigger|EventedMixin.trigger}.
@ -139,7 +136,7 @@ declare class Plugin {
*
* @param {Object} [hash={}]
* Additional data hash to merge with a
* {@link Plugin~PluginEventHash|PluginEventHash}.
* {@link PluginEventHash|PluginEventHash}.
*
* @return {boolean}
* Whether or not default was prevented.

View file

@ -1 +1 @@
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/js/plugin.js"],"names":[],"mappings":";;;;;;;;;cAigBc,MAAM;;;;UAIN,MAAM;;;;;YAGN,MAAM;;AA3VpB;;;;;;;;;;;;;GAaG;AACH;IA+HE;;;;;;;;;OASG;IACH,uBAPa,MAAM,WAAS,GAIhB,OAAO,CAOlB;IAED;;;;;;;;;;;;;;OAcG;IACH,4BAZa,MAAM,UAKN,aAAa,WAAS,GAGvB,aAAa,WAAS,CAgCjC;IAED;;;;;;;;;OASG;IACH,8BAPY,MAAM,QAejB;IAED;;;;;;;;;;OAUG;IACH,kCAJY,MAAO,SAAS,CAiB3B;IAED;;;;;;;;OAQG;IACH,8BANa,MAAM,GAGP,MAAM,CAOjB;IArPD;;;;;;;OAOG;IACH,oBAHW,MAAM,EA4BhB;IApBC,eAAoB;IAGlB,SAAkD;IA6EtD;;;;;;;OAOG;IACH,gBAsBC;IAxFD;;OAEG;IACH,eAEC;IAED;;;;;;;;;;;OAWG;IACH,0BAHY,MAAM,CAQjB;IAED;;;;;;;;;;;;;OAaG;IACH,eAVa,MAAM,MAAO,eAOd,OAAO,CAKlB;IAED;;;;;;;;;;;OAWG;IACH,sBAPc,KAAK,QAOK;IA2BR,WAAiB;CAgIlC;;;;;;AApYD;;;;;;;;;GASG;AACH,iCANa,MAAM,GAGP,aAAa,cAAU,SAAS,CAGoC;AAhDhF;;;;;;GAMG;AACH,gCAFU,MAAM,CAEkB"}
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/js/plugin.js"],"names":[],"mappings":";;;;;;cAigBc,MAAM;;;;UAIN,MAAM;;;;;YAGN,MAAM;;AA3VpB;;;;;;;;;;;;;GAaG;AACH;IA+HE;;;;;;;;;OASG;IACH,uBAPa,MAAM,WAAS,GAIhB,OAAO,CAOlB;IAED;;;;;;;;;;;;;;OAcG;IACH,4BAZa,MAAM,UAKN,aAAa,WAAS,GAGvB,aAAa,WAAS,CAgCjC;IAED;;;;;;;;;OASG;IACH,8BAPY,MAAM,QAejB;IAED;;;;;;;;;;OAUG;IACH,kCAJY,MAAO,SAAS,CAiB3B;IAED;;;;;;;;OAQG;IACH,8BANa,MAAM,GAGP,MAAM,CAOjB;IArPD;;;;;;;OAOG;IACH,oBAHW,MAAM,EA4BhB;IApBC,eAAoB;IAGlB,SAAkD;IA6EtD;;;;;;;OAOG;IACH,gBAsBC;IAxFD;;OAEG;IACH,eAEC;IAED;;;;;;;;;;;OAWG;IACH,0BAHY,eAAe,CAQ1B;IAED;;;;;;;;;;;;;OAaG;IACH,eAVa,MAAM,MAAO,eAOd,OAAO,CAKlB;IAED;;;;;;;;;;;OAWG;IACH,sBAPc,KAAK,QAOK;IA2BR,WAAiB;CAgIlC;;;;;;AApYD;;;;;;;;;GASG;AACH,iCANa,MAAM,GAGP,aAAa,cAAU,SAAS,CAGoC;AAhDhF;;;;;;GAMG;AACH,gCAFU,MAAM,CAEkB"}

View file

@ -1,8 +1,11 @@
export default Tech;
/**
* ~SourceObject
* An Object containing a structure like: `{src: 'url', type: 'mimetype'}` or string
* that just contains the src url alone.
* * `var SourceObject = {src: 'http://ex.com/video.mp4', type: 'video/mp4'};`
* `var SourceString = 'http://example.com/some-video.mp4';`
*/
export type Tech = any | string;
export type SourceObject = any | string;
/**
* This is the base class for media playback technology controllers, such as
* {@link HTML5}
@ -232,11 +235,11 @@ declare class Tech extends Component {
* > NOTE: This implementation is incomplete. It does not track the played `TimeRange`.
* It only checks whether the source has played at all or not.
*
* @return {TimeRange}
* @return { import('../utils/time').TimeRange }
* - A single time range if this video has played
* - An empty set of ranges if not.
*/
played(): TimeRange;
played(): import('../utils/time').TimeRange;
/**
* Start playback
*

View file

@ -1 +1 @@
{"version":3,"file":"tech.d.ts","sourceRoot":"","sources":["../../../src/js/tech/tech.js"],"names":[],"mappings":";;;;mBAwBa,MAAO,MAAM;AAoD1B;;;;;GAKG;AACH;IAy2BE;;;;;;;;;OASG;IACH,0BAJW,MAAM,GAEL,MAAM,CAIjB;IAED;;;;;;;;OAQG;IACH,iDAFY,MAAM,CAIjB;IAcD,uCAIC;IAED;;;;;;;;OAQG;IACH,0BANW,MAAM,kBA+BhB;IAED;;;;;;;;OAQG;IACH,qBANW,MAAM,GAGL,IAAI,GAAC,SAAS,CAkBzB;IAh9BD;;;;;;;;MAQE;IACF,6CAwEC;IAlEC,oCAAwD;IACxD,iCAAkD;IAClD,oCAAwD;IACxD,2CAAsE;IACtE,uCAAgE;IAEhE,yBAA+B;IAI/B,qBAAwB;IAiCtB,0BAmiCI,OAAO,CAniC0B;IASvC,2BAA4D;IAE5D,mEAAiE;IAcnE;;;;;;OAMG;IACH,sBAFW,MAAM,QAqBhB;IAKD;;;;OAIG;IACH,yBAOC;IAJC,wBAA0B;IAM5B;;;OAGG;IACH,0BAKC;IAED;;;;;;;;;;;;OAYG;IACH,qBANW,KAAK,QA6Bf;IArBC,yBAoBQ;IAGV;;;;;;;;OAQG;IACH,wBALW,KAAK,QAOf;IADC,eAAgC;IAGlC;;;;;OAKG;IACH,YAHa,OAAO,eAAe,EA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
* Create an instance of this class.
*
* @param {AudioTrack[]} [tracks=[]]
* @param { import('./audio-track').default[] } [tracks=[]]
* A list of `AudioTrack` to instantiate the list with.
*/
constructor(tracks?: AudioTrack[]);
constructor(tracks?: import('./audio-track').default[]);
changing_: boolean;
/**
* Add an {@link AudioTrack} to the `AudioTrackList`.

View file

@ -1 +1 @@
{"version":3,"file":"audio-track-list.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/audio-track-list.js"],"names":[],"mappings":";AA2BA;;;;;GAKG;AACH;IAEE;;;;;OAKG;IACH,qBAHW,YAAY,EAetB;IADC,mBAAsB;IAGxB;;;;;;;OAOG;IACH,gBALY,OAAO,eAAe,EAAE,OAAO,QAkC1C;IAED,+BAOC;CACF"}
{"version":3,"file":"audio-track-list.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/audio-track-list.js"],"names":[],"mappings":";AA2BA;;;;;GAKG;AACH;IAEE;;;;;OAKG;IACH,qBAHY,OAAO,eAAe,EAAE,OAAO,EAAE,EAe5C;IADC,mBAAsB;IAGxB;;;;;;;OAOG;IACH,gBALY,OAAO,eAAe,EAAE,OAAO,QAkC1C;IAED,+BAOC;CACF"}

View file

@ -48,7 +48,10 @@ declare class HTMLTrackElement extends EventTarget {
srclang: any;
label: any;
default: any;
allowedEvents_: {
/**
* @protected
*/
protected allowedEvents_: {
load: string;
};
}

View file

@ -1 +1 @@
{"version":3,"file":"html-track-element.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/html-track-element.js"],"names":[],"mappings":";AAOA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH;QA5BqD,IAAI,EAA7C,OAAO,cAAc,EAAE,OAAO;OAmFzC;IAhDC,UAAsB;IACtB,SAAoB;IACpB,aAA6B;IAC7B,WAAwB;IACxB,aAA4B;IA+ChC;;MAAyC;CAFxC;;gBASS,MAAM;mBAQN,MAAM;kBAQN,MAAM;iBAQN,MAAM"}
{"version":3,"file":"html-track-element.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/html-track-element.js"],"names":[],"mappings":";AAOA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH;QA5BqD,IAAI,EAA7C,OAAO,cAAc,EAAE,OAAO;OAmFzC;IAhDC,UAAsB;IACtB,SAAoB;IACpB,aAA6B;IAC7B,WAAwB;IACxB,aAA4B;IA+ChC;;OAEG;IACH;;MAAyC;CALxC;;gBAYS,MAAM;mBAQN,MAAM;kBAQN,MAAM;iBAQN,MAAM"}

View file

@ -69,8 +69,9 @@ declare class TextTrack extends Track {
removeCue(removeCue: any): void;
/**
* cuechange - One or more cues in the track have become active or stopped being active.
* @protected
*/
allowedEvents_: {
protected allowedEvents_: {
cuechange: string;
};
}

View file

@ -1 +1 @@
{"version":3,"file":"text-track.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/text-track.js"],"names":[],"mappings":";AAoHA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH;QA5BqD,IAAI,EAA7C,OAAO,cAAc,EAAE,OAAO;OA6OzC;IAhMC,WAA0B;IAE1B,aAAe;IACf,mBAAqB;IAErB,kBAAsD;IAMtD,4BA2BE;IA8IA,SAAuB;IAIrB,iBAAmB;IAUzB,sBAKC;IAHC,UAAwE;IAK1E,qBAMC;IAED;;;;;OAKG;IACH,+BA2BC;IAED;;;;;OAKG;IACH,gCAYC;IAGH;;OAEG;IACH;;MAAkC;CALjC"}
{"version":3,"file":"text-track.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/text-track.js"],"names":[],"mappings":";AAoHA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH;QA5BqD,IAAI,EAA7C,OAAO,cAAc,EAAE,OAAO;OA6OzC;IAhMC,WAA0B;IAE1B,aAAe;IACf,mBAAqB;IAErB,kBAAsD;IAMtD,4BA2BE;IA8IA,SAAuB;IAIrB,iBAAmB;IAUzB,sBAKC;IAHC,UAAwE;IAK1E,qBAMC;IAED;;;;;OAKG;IACH,+BA4BC;IAED;;;;;OAKG;IACH,gCAYC;IAGH;;;OAGG;IACH;;MAAkC;CANjC"}

View file

@ -53,9 +53,14 @@ declare class TrackList extends EventTarget {
* Events that can be called with on + eventName. See {@link EventHandler}.
*
* @property {Object} TrackList#allowedEvents_
* @private
* @protected
*/
private allowedEvents_;
protected allowedEvents_: {
change: string;
addtrack: string;
removetrack: string;
labelchange: string;
};
}
import EventTarget from "../event-target";
//# sourceMappingURL=track-list.d.ts.map

View file

@ -1 +1 @@
{"version":3,"file":"track-list.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/track-list.js"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH;IACE;;;;;;;OAOG;IACH,qBALY,OAAO,SAAS,EAAE,OAAO,EAAE,EAyBtC;IAjBC,eAAiB;IAmBnB;;;;;;;OAOG;IACH,gBALY,OAAO,SAAS,EAAE,OAAO,QAqDpC;IAED;;;;;;;OAOG;IACH,oBALY,OAAO,SAAS,EAAE,OAAO,QAsCpC;IAED;;;;;;;OAOG;IACH,qBAaC;IAGH;;;;;OAKG;IAEH;;;;;OAKG;IACH,uBAAkC;CAfjC"}
{"version":3,"file":"track-list.d.ts","sourceRoot":"","sources":["../../../src/js/tracks/track-list.js"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH;IACE;;;;;;;OAOG;IACH,qBALY,OAAO,SAAS,EAAE,OAAO,EAAE,EAyBtC;IAjBC,eAAiB;IAmBnB;;;;;;;OAOG;IACH,gBALY,OAAO,SAAS,EAAE,OAAO,QAqDpC;IAED;;;;;;;OAOG;IACH,oBALY,OAAO,SAAS,EAAE,OAAO,QAsCpC;IAED;;;;;;;OAOG;IACH,qBAaC;IAGH;;;;;OAKG;IAEH;;;;;OAKG;IACH;;;;;MAAkC;CAfjC"}

View file

@ -4,6 +4,7 @@ export default videojs;
* parameters and any callback value will be ignored. See: {@link Component ~ReadyCallback}
*/
export type ReadyCallback = () => any;
export type version = string;
/**
* A callback that is called when a component is ready. Does not have any
* parameters and any callback value will be ignored. See: {@link Component~ReadyCallback}
@ -132,13 +133,13 @@ declare namespace videojs {
* @param {string} name
* The class name of the component
*
* @param {Component} comp
* @param {typeof Component} comp
* The component class
*
* @return {Component}
* @return {typeof Component}
* The newly registered component
*/
export function registerComponent(name: string, comp: Component): Component;
export function registerComponent(name: string, comp: typeof Component): typeof Component;
export const getTech: typeof Tech.getTech;
export const registerTech: typeof Tech.registerTech;
export { middlewareUse as use };
@ -159,11 +160,13 @@ declare namespace videojs {
*
* @param {string} name
* The plugin name
*
* @param {Plugin|Function} plugin
*
* @param {typeof Plugin|Function} plugin
* The plugin sub-class or function
*
* @return {typeof Plugin|Function}
*/
export function plugin(name: string, plugin: Function | Plugin): Function | typeof Plugin;
export function plugin(name: string, plugin: Function | typeof Plugin): Function | typeof Plugin;
export const getPlugins: typeof Plugin.getPlugins;
export const getPlugin: (name: string) => Function | typeof Plugin;
export const getPluginVersion: typeof Plugin.getPluginVersion;

View file

@ -1 +1 @@
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/js/video.js"],"names":[],"mappings":";;;;;;AAmDA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,6BAdY,MAAM,GAAC,OAAO,yBAOd,aAAa,GAIb,MAAM,CAiEjB;;;;;;;;;IAoDD;;;;;OAKG;IACH,kCAAyC;IAEzC;;;;;;;;;;;;;OAaG;IACH,wDA0BC;IAED;;;;;;;;OAQG;IACH,uCAIyE;;;IAKzE;;;;;;;;;;;;;;;;OAgBG;IACH,4EAMC;;;;;;;;;;;;;;IAuED;;;;;;;;;;OAUG;IACH,0FAGC;;;;IAMD;;;;;;;;;;;;OAYG;IACH,0DASC"}
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/js/video.js"],"names":[],"mappings":";;;;;;sBAKc,MAAM;AAiDpB;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,6BAdY,MAAM,GAAC,OAAO,yBAOd,aAAa,GAIb,MAAM,CAiEjB;;;;;;;;;IAoDD;;;;;OAKG;IACH,kCAAyC;IAEzC;;;;;;;;;;;;;OAaG;IACH,wDA0BC;IAED;;;;;;;;OAQG;IACH,uCAIyE;;;IAKzE;;;;;;;;;;;;;;;;OAgBG;IACH,0FAMC;;;;;;;;;;;;;;IAuED;;;;;;;;;;;;OAYG;IACH,iGAGC;;;;IAMD;;;;;;;;;;;;OAYG;IACH,0DASC"}

View file

@ -911,6 +911,10 @@ body.vjs-pip-window .video-js {
background-color: rgba(43, 51, 63, 0.7);
}
.video-js:not(.vjs-controls-disabled, .vjs-using-native-controls, .vjs-error) .vjs-control-bar.vjs-lock-showing {
display: flex !important;
}
.vjs-has-started .vjs-control-bar,
.vjs-audio-only-mode .vjs-control-bar {
display: flex;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

712
node_modules/video.js/dist/video.js generated vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

6
node_modules/video.js/package.json generated vendored
View file

@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 video player that supports HLS and DASH with a common API and skin.",
"version": "8.6.0",
"version": "8.6.1",
"main": "./dist/video.cjs.js",
"module": "./dist/video.es.js",
"style": "./dist/video-js.css",
@ -86,7 +86,7 @@
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@videojs/http-streaming": "3.6.0",
"@videojs/http-streaming": "3.7.0",
"@videojs/vhs-utils": "^4.0.0",
"@videojs/xhr": "2.6.0",
"aes-decrypter": "^4.0.1",
@ -94,7 +94,7 @@
"keycode": "2.2.0",
"m3u8-parser": "^6.0.0",
"mpd-parser": "^1.0.1",
"mux.js": "^6.2.0",
"mux.js": "^7.0.1",
"safe-json-parse": "4.0.0",
"videojs-contrib-quality-levels": "4.0.0",
"videojs-font": "4.1.0",

View file

@ -10,6 +10,14 @@
@include background-color-with-alpha($primary-background-color, $primary-background-transparency);
}
// Locks the display only if:
// - controls are not disabled
// - native controls are not used
// - there is no error
.video-js:not(.vjs-controls-disabled, .vjs-using-native-controls, .vjs-error) .vjs-control-bar.vjs-lock-showing {
display: flex !important;
}
// Video has started playing or we are in audioOnlyMode
.vjs-has-started .vjs-control-bar,
.vjs-audio-only-mode .vjs-control-bar {