[wp-trac] [WordPress Trac] #48562: Audio keeps playing on closing media/attachment details popup in WP Admin
WordPress Trac
noreply at wordpress.org
Fri Jan 22 18:44:08 UTC 2021
#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: 5.7
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------
Changes (by Mista-Flo):
* keywords: has-patch => has-patch needs-testing
Comment:
Replying to [comment:10 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.
Hi Clorith, thanks for your proposal, I just triggered a `mejs-pause`
button pause, and it works, so I guess it's the simplest way to fix the
issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48562#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list