[wp-trac] [WordPress Trac] #50060: Header Video: Use playVideo after mute instead of autoplay to prevent video blocking because of autoplay with sound enabled (was: Use playVideo after mute instead of autoplay to prevent video blocking because of autoplay with sound enabled)

WordPress Trac noreply at wordpress.org
Tue Jun 1 02:53:06 UTC 2021


#50060: Header Video: Use playVideo after mute instead of autoplay to prevent video
blocking because of autoplay with sound enabled
-----------------------------+------------------------------
 Reporter:  olivierblancdev  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Customize        |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+------------------------------
Changes (by celloexpressions):

 * keywords:   => needs-patch


Comment:

 The proposed change (as linked  in the pull request above) seems like it
 would work, but I'm not completely clear on the need for the change.

 It seems like both muting and autoplaying should be specified in the
 `<video>` element mark. Or both should be triggered with JS. But we
 shouldn't need to do a combination of both, which could cause unintended
 side effects.

 As a next step, it would be great to see more research into preferred
 methods for handling silent autoplayed videos that core could take
 inspiration from. The linked pull request above should also be turned into
 an actual patch or linked pull request.

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


More information about the wp-trac mailing list