[wp-trac] [WordPress Trac] #23673: Add functions to get metadata for videos

WordPress Trac noreply at wordpress.org
Sun Mar 3 17:57:56 UTC 2013


#23673: Add functions to get metadata for videos
----------------------------+------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  Media           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by wonderboymusic):

 attachment:23673.3.diff adds some dazzle, get ready for your mind to be
 blown:

 - Allows the Post Thumbnail metabox to show up for attachments that are
 audio or video, without explicitly supporting `post-thumbnails` in your
 theme or on the post type. Why? I have an MP3 with an embedded image, how
 do I associate them? Well, by just adding `_thumbnail_id` to post meta for
 the mp3, I have associated them just enough to be useful.

 - When generating metadata for audio or video: if your file contains an
 embedded image, I am now storing that binary chunk as an image file in the
 Media Library and adding `_thumbnail_id` to the media file's post meta.
 It's magic, and it's awesome.

 - The ID3 tags, when present, contain metadata like "album" "artist"
 "song" etc - we probably want to start displaying that data on the edit
 attachment screen so it can be changed / corrected. When the media file's
 metadata is stored, that data is stored along with it.

 attachment:ID3.zip​ can be unzipped in `wp-includes` - I removed it from
 the patch because the `.diff` file was huge with it in there.

 Subsequent changes to `edit-form-advanced.php` really require #23282 to be
 in, so let's get on that. This stuff is exciting because it is putting
 audio / video on par with images finally.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23673#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list