[wp-trac] [WordPress Trac] #40921: Inconsistent Handling of mp4 by Audio Widget

WordPress Trac noreply at wordpress.org
Thu Jun 22 15:54:10 UTC 2017


#40921: Inconsistent Handling of mp4 by Audio Widget
-------------------------------------+-----------------------------
 Reporter:  toddhalfpenny            |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Media                    |     Version:  3.6
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:
-------------------------------------+-----------------------------

Comment (by timmydcrawford):

 Thanks for the report and diff @toddhalfpenny.  I think this is the
 correct way to add support for mp4 files in the audio player, but also
 think the real question here is ''why'' the format has never been on the
 list of supported audio extensions in the first place.

 Looking at Mozilla's documentation around the HTML5 audio player, they
 have an interesting section about {{{.mp4}}} encoded files in the context
 of the browser's audio players: https://developer.mozilla.org/en-
 US/docs/Web/HTML/Supported_media_formats#MP4_H.264_(AAC_or_MP3).  TIL
 there are two different codecs for .mp4, both with differing levels of
 browser support.

 As [[attachment:40921.diff]] shows though, the mediaelement player does
 support playback of these files, though not certain if non-supported
 browsers mentioned in the Mozilla doc if there would potentially be issues
 there.

 My .02 is that if the HTML5 audio player supports a file format, it makes
 sense to include it in {{{wp_audio_extensions}}} - perhaps someone from
 the media squad could chime in on the subject that might know some history
 behind the current extension list, and mp4 not being included thus far.

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


More information about the wp-trac mailing list