Cleanup after [29179]:
* Remove `wp.media.mixin.pauseAllPlayers()` - was only ever intended to be used in MCE views, reaches too far into global scope. Rendered irrelevant since [28364]. * Remove `wp.media.mixin.pausePlayers()` - added in [28364]. MCE views no longer keep track of player instances and call mixin methods, they refer to their child iframes and call MEjs methods on the iframe's `window.mejs.players`. See #28905. Built from https://develop.svn.wordpress.org/trunk@29194 git-svn-id: http://core.svn.wordpress.org/trunk@28978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
69986d87a7
commit
e75d42daff
|
@ -14,17 +14,6 @@
|
|||
*/
|
||||
wp.media.mixin = {
|
||||
mejsSettings: baseSettings,
|
||||
/**
|
||||
* Pauses every instance of MediaElementPlayer
|
||||
*/
|
||||
pauseAllPlayers: function() {
|
||||
var p;
|
||||
if ( window.mejs && window.mejs.players ) {
|
||||
for ( p in window.mejs.players ) {
|
||||
window.mejs.players[p].pause();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
removeAllPlayers: function() {
|
||||
var p;
|
||||
|
@ -37,15 +26,6 @@
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Pauses the current object's instances of MediaElementPlayer
|
||||
*/
|
||||
pausePlayers: function() {
|
||||
_.each( this.players, function (player) {
|
||||
player.pause();
|
||||
} );
|
||||
},
|
||||
|
||||
/**
|
||||
* Override the MediaElement method for removing a player.
|
||||
* MediaElement tries to pull the audio/video tag out of
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue