How to use the new wp_read_video_metadata function
I see in WordPress 3.6 that you can read metadata from video and audio files. I have read through the codex (http://codex.wordpress.org/Function_Reference/wp_read_video_metadata), and even tried to implement getting the bitrate on a video, but with no results. Does anyone know the answers to the following questions:
- Can this function be used to read the metadata on my videos hosted on Amazon S3, basically can this function be used for external video and audio?
- Can I call this in a page template? I ask because the error I received when I tried the default example from the codex was that the function wp_read_video_metadata was not found. Which indicates the file wp-admin/includes/media.php is not being included on a standard page template.
- Finally, does anyone have a working example of getting audio or video metadata using these new functions?
Any help would be great. Thanks!