[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 https://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("https://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
https://www.ads-software.com/extend/plugins/video-thumbnails/
- The topic ‘[Plugin: Video Thumbnails] Blip.tv thumbnails via a custom field’ is closed to new replies.