[wp-trac] [WordPress Trac] #23673: Add functions to generate metadata for video / audio

WordPress Trac noreply at wordpress.org
Thu Mar 7 21:56:01 UTC 2013

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

Comment (by wonderboymusic):

 Patch updated to check for theme and post type support - themers are now
 blessed with being able to add these lines to their `functions.php` blob:

 add_post_type_support( 'attachment:audio', 'thumbnail' );
 add_post_type_support( 'attachment:video', 'thumbnail' );
 add_theme_support( 'post-thumbnails', 'attachment:audio' );
 add_theme_support( 'post-thumbnails', 'attachment:video' );

 Laundry list of what is in this patch:

 - post type and theme support checks on the edit attachment screen
 - Introduce `wp_read_video_metadata()`
 - Introduce `wp_read_audio_metadata()`
 - Introduce `getID3` library subset, `ID3.zip` needs to be unzipped in
 - Upload image from ID3 tags to Media Library if theme and
 `attachment:audio|video` support it
 - Introduce `wp_add_id3_tag_data`

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

More information about the wp-trac mailing list