Mixin: mixin

wp.media. mixin

Defines the wp.media.mixin object.
Since:
  • 4.2.0
Source:

Methods


<static> removeAllPlayers()

Pauses and removes all players.
Since:
  • 4.2.0
Source:
Returns:
Type
void

<static> removePlayer()

Removes the player. Override the MediaElement method for removing a player. MediaElement tries to pull the audio/video tag out of its container and re-add it to the DOM.
Since:
  • 4.2.0
Source:
Returns:
Type
void

<static> unsetPlayers()

Removes and resets all players. Allows any class that has set 'player' to a MediaElementPlayer instance to remove the player when listening to events. Examples: modal closes, shortcode properties are removed, etc.
Since:
  • 4.2.0
Source: