Browsers other than Firefox need a timeout when parsing audio and video shortcodes into MCE views.
See [27655]. git-svn-id: https://develop.svn.wordpress.org/trunk@27987 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
18d485fb32
commit
4322e0c50a
@ -457,14 +457,9 @@ window.wp = window.wp || {};
|
||||
|
||||
media = wp.media.view.MediaDetails.prepareSrc( media.get(0) );
|
||||
|
||||
// Thanks, Firefox!
|
||||
if ( firefox ) {
|
||||
setTimeout( function() {
|
||||
self.player = new MediaElementPlayer( media, this.mejsSettings );
|
||||
}, 50 );
|
||||
} else {
|
||||
this.player = new MediaElementPlayer( media, this.mejsSettings );
|
||||
}
|
||||
setTimeout( function() {
|
||||
self.player = new MediaElementPlayer( media, this.mejsSettings );
|
||||
}, 75 );
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user