[wp-trac] [WordPress Trac] #61398: Missing src attribute on <audio> tag prevents m4a audio files playing in safari.
WordPress Trac
noreply at wordpress.org
Sun Mar 16 17:59:17 UTC 2025
#61398: Missing src attribute on <audio> tag prevents m4a audio files playing in
safari.
-------------------------------------+------------------------
Reporter: ericmulder | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.8
Component: Media | Version: 6.6
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------
Comment (by joedolson):
Did some research on the problem, since I wanted to have a better sense of
what was going on here. It seems like Safari has a number of historic
issues around using the `source` attribute, and MediaElement works around
this by adding the value of the first `source` element as a `src`
attribute. When MediaElement isn't running, that doesn't happen, and it
doesn't work.
The current patch works *if* the m4a file is passed in the `src`
attribute, but that isn't the case if using the media buttons in the
inserter, which instead add an `m4a` attribute with the source.
To support that, we need to assign the primary format extension as the
'src' attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61398#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list