[wp-trac] [WordPress Trac] #40921: Inconsistent Handling of mp4 by Audio Widget
WordPress Trac
noreply at wordpress.org
Thu Oct 12 18:59:03 UTC 2017
#40921: Inconsistent Handling of mp4 by Audio Widget
------------------------------------------------------+------------------
Reporter: toddhalfpenny | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Media | Version: 3.6
Severity: normal | Resolution:
Keywords: 2nd-opinion dev-feedback has-screenshots | Focuses:
------------------------------------------------------+------------------
Comment (by blobfolio):
Unfortunately his approach isn't going to work. WordPress registers embed
handlers based on a regular expression; there's no content-based parsing
to determine what streams a file might include.
Adding `mp4` to the list of audio extensions would result in such URLs
being bound to both audio and video embed handlers, and since the audio
one gets executed first, it would cause ''every'' MP4 file to render using
the audio widget, even if a file has video streams.
So basically the opposite problem. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40921#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list