Browsers other than Firefox need a timeout when parsing audio and video shortcodes into MCE views.
See [27655]. Built from https://develop.svn.wordpress.org/trunk@27987 git-svn-id: http://core.svn.wordpress.org/trunk@27817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5f76bf3b0d
commit
5a67d92611
|
@ -457,14 +457,9 @@ window.wp = window.wp || {};
|
||||||
|
|
||||||
media = wp.media.view.MediaDetails.prepareSrc( media.get(0) );
|
media = wp.media.view.MediaDetails.prepareSrc( media.get(0) );
|
||||||
|
|
||||||
// Thanks, Firefox!
|
setTimeout( function() {
|
||||||
if ( firefox ) {
|
self.player = new MediaElementPlayer( media, this.mejsSettings );
|
||||||
setTimeout( function() {
|
}, 75 );
|
||||||
self.player = new MediaElementPlayer( media, this.mejsSettings );
|
|
||||||
}, 50 );
|
|
||||||
} else {
|
|
||||||
this.player = new MediaElementPlayer( media, this.mejsSettings );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue