WordPress.org

Support

Support » Plugins and Hacks » Video Thumbnails » [Plugin: Video Thumbnails] Blip.tv thumbnails via a custom field

[Plugin: Video Thumbnails] Blip.tv thumbnails via a custom field

  • Hi Sutherland, great plugin. Many thanks for this contribution.

    I adapted one of your functions to grab a Blip.tv video ID from a custom field (the ‘hZBPgqbXeQA’ bit of http://blip.tv/play/hZBPgqbXeQA for instance) and echo to my theme. Very basic (I’m a cut and paste coder!), but worked for what I was trying to achieve. Hopefully may help someone else.

    function getBliptvThumb() {
    global $post;
    $blipID = get_post_meta($post->ID, 'Video', true);
    $xml = simplexml_load_file("http://blip.tv/players/episode/$blipID?skin=rss");
    $result = $xml->xpath("/rss/channel/item/media:thumbnail/@url");
    $thumbnail = (string) $result[0]['url'];
    echo '<img src="'.$thumbnail.'" border="0" />';
    }

    Thanks again

    http://wordpress.org/extend/plugins/video-thumbnails/

  • The topic ‘[Plugin: Video Thumbnails] Blip.tv thumbnails via a custom field’ is closed to new replies.
Skip to toolbar