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. git-svn-id: https://develop.svn.wordpress.org/trunk@29194 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aa10b9f67b
commit
977b4a7c26
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user