[wp-trac] [WordPress Trac] #48562: Audio keeps playing on closing media/attachment details popup in WP Admin

WordPress Trac noreply at wordpress.org
Tue Oct 27 20:01:56 UTC 2020


#48562: Audio keeps playing on closing media/attachment details popup in WP Admin
--------------------------+-----------------------------
 Reporter:  amolv         |       Owner:  antpb
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by Clorith):

 Wondering if it might be a better approach to pause the playback, instead
 of triggering a refresh of the modal that's already been dismissed here
 (you still won't be able to resume if you open the same file, just like
 now, but I did notice that refreshing it triggers the update meta AJAX
 call when no changes have been made, while pausing did not appear to do
 so).

 You should be able to achieve a similar approach to your current trigger,
 but instead you'll want to either trigger a `click` event on the `mejs-
 pause` button, or loop over any MediaElement instance and call the
 `pause()` function on them to do so.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48562#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list