[wp-trac] [WordPress Trac] #35218: Parse the creation date out of uploaded videos
WordPress Trac
noreply at wordpress.org
Thu Dec 24 20:28:41 UTC 2015
#35218: Parse the creation date out of uploaded videos
---------------------------+-----------------------------
Reporter: stevegrunwell | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
When images are uploaded into the media library,
`wp_read_image_metadata()` will read the images' EXIF data to determine
the date the image was taken, which is returned in "created_timestamp".
Other media types (audio and video) do not provide this information, but
it's still useful metadata (especially on media-heavy sites).
This information is available through the getID3 library, however where it
lives varies based on the type of media uploaded. I propose we add a
"created_timestamp" key to `wp_read_video_metadata()` (and ideally
`wp_read_audio_metadata()` as well) which parses out a timestamp
corresponding to when the media was created (as we do with images).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35218>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list