2023-10-27 08:46:19 +00:00
|
|
|
--- ./node_modules/plyr/dist/plyr.mjs 2023-10-27 01:22:58.553986870 -0700
|
|
|
|
+++ ./node_modules/plyr/dist/plyr.mjs 2023-10-27 01:22:47.333523678 -0700
|
|
|
|
@@ -3024,6 +3024,8 @@
|
|
|
|
const captions = {
|
|
|
|
// Setup captions
|
|
|
|
setup() {
|
2023-10-27 09:21:26 +00:00
|
|
|
+ return; // disable due to bug in insertAfter (no element in wrapper)
|
2023-10-27 08:46:19 +00:00
|
|
|
+
|
|
|
|
// Requires UI support
|
|
|
|
if (!this.supported.ui) {
|
|
|
|
return;
|
2023-10-27 09:21:26 +00:00
|
|
|
@@ -6224,8 +6226,8 @@
|
2023-10-27 08:46:19 +00:00
|
|
|
class: this.config.classNames.video
|
|
|
|
});
|
|
|
|
|
|
|
|
- // Wrap the video in a container
|
|
|
|
- wrap(this.media, this.elements.wrapper);
|
2023-10-27 09:21:26 +00:00
|
|
|
+ // Add wrapper to container
|
|
|
|
+ this.elements.container.appendChild(this.elements.wrapper);
|
|
|
|
|
2023-10-27 08:46:19 +00:00
|
|
|
// Poster image container
|
|
|
|
this.elements.poster = createElement('div', {
|
2023-10-27 09:21:26 +00:00
|
|
|
@@ -7937,11 +7939,6 @@
|
2023-10-27 08:46:19 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- // Cache original element state for .destroy()
|
|
|
|
- const clone = this.media.cloneNode(true);
|
|
|
|
- clone.autoplay = false;
|
|
|
|
- this.elements.original = clone;
|
|
|
|
-
|
|
|
|
// Set media type based on tag or data attribute
|
|
|
|
// Supported: video, audio, vimeo, youtube
|
|
|
|
const _type = this.media.tagName.toLowerCase();
|
2023-10-27 09:21:26 +00:00
|
|
|
@@ -8053,7 +8050,6 @@
|
2023-10-27 08:46:19 +00:00
|
|
|
// Wrap media
|
|
|
|
if (!is.element(this.elements.container)) {
|
|
|
|
this.elements.container = createElement('div');
|
|
|
|
- wrap(this.media, this.elements.container);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Migrate custom properties from media to container (so they work 😉)
|