patch(plyr): make sure wrapper is inserted
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
7283066721
commit
e4b8f21b1a
|
@ -4,22 +4,23 @@
|
||||||
const captions = {
|
const captions = {
|
||||||
// Setup captions
|
// Setup captions
|
||||||
setup() {
|
setup() {
|
||||||
+ return; // disable due to bug in insertAftere (no element in wrapper)
|
+ return; // disable due to bug in insertAfter (no element in wrapper)
|
||||||
+
|
+
|
||||||
// Requires UI support
|
// Requires UI support
|
||||||
if (!this.supported.ui) {
|
if (!this.supported.ui) {
|
||||||
return;
|
return;
|
||||||
@@ -6224,9 +6226,6 @@
|
@@ -6224,8 +6226,8 @@
|
||||||
class: this.config.classNames.video
|
class: this.config.classNames.video
|
||||||
});
|
});
|
||||||
|
|
||||||
- // Wrap the video in a container
|
- // Wrap the video in a container
|
||||||
- wrap(this.media, this.elements.wrapper);
|
- wrap(this.media, this.elements.wrapper);
|
||||||
-
|
+ // Add wrapper to container
|
||||||
|
+ this.elements.container.appendChild(this.elements.wrapper);
|
||||||
|
|
||||||
// Poster image container
|
// Poster image container
|
||||||
this.elements.poster = createElement('div', {
|
this.elements.poster = createElement('div', {
|
||||||
class: this.config.classNames.poster
|
@@ -7937,11 +7939,6 @@
|
||||||
@@ -7937,11 +7936,6 @@
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +32,7 @@
|
||||||
// Set media type based on tag or data attribute
|
// Set media type based on tag or data attribute
|
||||||
// Supported: video, audio, vimeo, youtube
|
// Supported: video, audio, vimeo, youtube
|
||||||
const _type = this.media.tagName.toLowerCase();
|
const _type = this.media.tagName.toLowerCase();
|
||||||
@@ -8053,7 +8047,6 @@
|
@@ -8053,7 +8050,6 @@
|
||||||
// Wrap media
|
// Wrap media
|
||||||
if (!is.element(this.elements.container)) {
|
if (!is.element(this.elements.container)) {
|
||||||
this.elements.container = createElement('div');
|
this.elements.container = createElement('div');
|
||||||
|
|
Loading…
Reference in New Issue