Managing and Playing Large videos

I just finished a Wordperss site that had a similar need for playing video. I would recommend going the Youtube route. Youtube will handle hosting, file conversions and with iframe embedding you can be sure the most devices possible will see your videos. On the WordPress side of the equation, there are many helpful plugins … Read more

Replace audio/video enclosure with player?

I believe part of what you’re looking for is the WP_Embed class defined in wp-includes/media.php. It implements a framework for automatically replacing urls with the output of embed handlers. I’m afraid you’ll have to do the deeper research yourself (this was apparently introduces in 2.9.0, so documentation might still be thin). I doubt WordPress core … Read more

Get first video from the post (both embed and video shortcodes)

You could try mashing all the patterns together in one big regexp or and then doing a simple line by line parse of the content: function theme_oembed_videos() { global $post; if ( $post && $post->post_content ) { global $shortcode_tags; // Make a copy of global shortcode tags – we’ll temporarily overwrite it. $theme_shortcode_tags = $shortcode_tags; … Read more

Setting a post’s featured image from an embedded YouTube video

Not natively. You’d have to write some code to make it happen – there’s a nice pastebin function that provide the necessary code to do it. Edit (12/19/2011): Yep here’s how you can do this programmatically. Add the following two functions to your functions.php file and you should be good to go. The code has … Read more

Generating Thumbnails for video

You can use the oEmbed functionality baked into WordPress. Typically any video host on this list will return a thumbnail to you using oembed. Here is a list of default providers that WordPress uses for auto embedding in the content area. I’ve included non-video sources as well for the convenience of others. http://www.youtube.com/oembed http://blip.tv/oembed/ http://vimeo.com/api/oembed.xml … Read more