[wp-trac] [WordPress Trac] #34152: Several audio players on the same page get their controls mixed up

WordPress Trac noreply at wordpress.org
Fri Oct 16 08:56:55 UTC 2015


#34152: Several audio players on the same page get their controls mixed up
--------------------------+------------------------------
 Reporter:  Fab1en        |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+------------------------------

Comment (by Fab1en):

 [attachment:34152.patch] is fixing the bug reported here and the one
 reported at #32423 without the need of [34346]. But [34346] is also
 apparently fixing it. But I think this bug is not fully fixed yet, and
 need some reconsideration.

 The issue is that `_wpmejsSettings` is used by each MediaElementJS
 instance. The variable is stored locally so it seems to be fine, but in
 fact each player instance will modify the global`_wpmejsSettings`
 variable. Then, you have a race condition that shows the bug in some rare
 conditions.

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


More information about the wp-trac mailing list