Opened 12 years ago
Closed 12 years ago
#24504 closed defect (bug) (invalid)
Have wp_get_(audio|video)_extensions() wrap wp_get_mime_types( $type = null ) if feasible
Reported by: | aaroncampbell | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Media | Keywords: | needs-patch |
Focuses: | Cc: |
Description (last modified by )
Have wp_get_(audio|video)_extensions()
wrap wp_get_mime_types( $type = null )
if feasible
As per http://make.wordpress.org/core/2013/05/29/post-formats-ui-is-exiting-core-will-live-as-a-plugin/
Change History (3)
#3
@
12 years ago
- Milestone 3.6 deleted
- Resolution set to invalid
- Status changed from new to closed
So, ME.js only supports a subset of the video/audio MIME types WP knows about. So allowing all of them would lead to embeds being processed that won't work. Not great. We should keep these separate as they are for different purposes.
List of supported MIME types here:
https://github.com/johndyer/mediaelement/blob/master/src/js/me-namespace.js
Note: See
TracTickets for help on using
tickets.
Strategy: pass in a "before the slash" part of the mime type to
wp_get_mime_types()
which will only return those ones. Get rid ofwp_get_audio_extensions()
andwp_get_video_extensions()
.