mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Chromecast moved to PlayerSkins plugin
aisplay option added on PlayerSkins
This commit is contained in:
parent
480ae72b99
commit
efd0665a44
286 changed files with 72588 additions and 1487 deletions
101
node_modules/video.js/core.js
generated
vendored
101
node_modules/video.js/core.js
generated
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @license
|
||||
* Video.js 8.18.1 <http://videojs.com/>
|
||||
* Video.js 8.19.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>
|
||||
|
@ -24,7 +24,7 @@ var document__default = /*#__PURE__*/_interopDefaultLegacy(document$1);
|
|||
var XHR__default = /*#__PURE__*/_interopDefaultLegacy(XHR);
|
||||
var vtt__default = /*#__PURE__*/_interopDefaultLegacy(vtt);
|
||||
|
||||
var version = "8.18.1";
|
||||
var version = "8.19.1";
|
||||
|
||||
/**
|
||||
* An Object that contains lifecycle hooks as keys which point to an array
|
||||
|
@ -20295,6 +20295,59 @@ class Html5 extends Tech {
|
|||
this.setSrc(src);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a <source> element to the <video> element.
|
||||
*
|
||||
* @param {string} srcUrl
|
||||
* The URL of the video source.
|
||||
*
|
||||
* @param {string} [mimeType]
|
||||
* The MIME type of the video source. Optional but recommended.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Returns true if the source element was successfully added, false otherwise.
|
||||
*/
|
||||
addSourceElement(srcUrl, mimeType) {
|
||||
if (!srcUrl) {
|
||||
log.error('Invalid source URL.');
|
||||
return false;
|
||||
}
|
||||
const sourceAttributes = {
|
||||
src: srcUrl
|
||||
};
|
||||
if (mimeType) {
|
||||
sourceAttributes.type = mimeType;
|
||||
}
|
||||
const sourceElement = createEl('source', {}, sourceAttributes);
|
||||
this.el_.appendChild(sourceElement);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a <source> element from the <video> element by its URL.
|
||||
*
|
||||
* @param {string} srcUrl
|
||||
* The URL of the source to remove.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Returns true if the source element was successfully removed, false otherwise.
|
||||
*/
|
||||
removeSourceElement(srcUrl) {
|
||||
if (!srcUrl) {
|
||||
log.error('Source URL is required to remove the source element.');
|
||||
return false;
|
||||
}
|
||||
const sourceElements = this.el_.querySelectorAll('source');
|
||||
for (const sourceElement of sourceElements) {
|
||||
if (sourceElement.src === srcUrl) {
|
||||
this.el_.removeChild(sourceElement);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
log.warn(`No matching source element found with src: ${srcUrl}`);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the tech by removing all sources and then calling
|
||||
* {@link Html5.resetMediaElement}.
|
||||
|
@ -23319,7 +23372,8 @@ class Player extends Component {
|
|||
}
|
||||
|
||||
/**
|
||||
* Handle a double-click on the media element to enter/exit fullscreen
|
||||
* Handle a double-click on the media element to enter/exit fullscreen,
|
||||
* or exit documentPictureInPicture mode
|
||||
*
|
||||
* @param {Event} event
|
||||
* the event that caused this function to trigger
|
||||
|
@ -23346,6 +23400,12 @@ class Player extends Component {
|
|||
if (this.options_ === undefined || this.options_.userActions === undefined || this.options_.userActions.doubleClick === undefined || this.options_.userActions.doubleClick !== false) {
|
||||
if (this.options_ !== undefined && this.options_.userActions !== undefined && typeof this.options_.userActions.doubleClick === 'function') {
|
||||
this.options_.userActions.doubleClick.call(this, event);
|
||||
} else if (this.isInPictureInPicture() && !document__default["default"].pictureInPictureElement) {
|
||||
// Checking the presence of `window.documentPictureInPicture.window` complicates
|
||||
// tests, checking `document.pictureInPictureElement` also works. It wouldn't
|
||||
// be null in regular picture in picture.
|
||||
// Exit picture in picture mode. This gesture can't trigger pip on the main window.
|
||||
this.exitPictureInPicture();
|
||||
} else if (this.isFullscreen()) {
|
||||
this.exitFullscreen();
|
||||
} else {
|
||||
|
@ -24918,6 +24978,41 @@ class Player extends Component {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a <source> element to the <video> element.
|
||||
*
|
||||
* @param {string} srcUrl
|
||||
* The URL of the video source.
|
||||
*
|
||||
* @param {string} [mimeType]
|
||||
* The MIME type of the video source. Optional but recommended.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Returns true if the source element was successfully added, false otherwise.
|
||||
*/
|
||||
addSourceElement(srcUrl, mimeType) {
|
||||
if (!this.tech_) {
|
||||
return false;
|
||||
}
|
||||
return this.tech_.addSourceElement(srcUrl, mimeType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a <source> element from the <video> element by its URL.
|
||||
*
|
||||
* @param {string} srcUrl
|
||||
* The URL of the source to remove.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Returns true if the source element was successfully removed, false otherwise.
|
||||
*/
|
||||
removeSourceElement(srcUrl) {
|
||||
if (!this.tech_) {
|
||||
return false;
|
||||
}
|
||||
return this.tech_.removeSourceElement(srcUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Begin loading the src data.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue