/** * Get thumbnail image url * http://ll-images.veoh.com/media/w120/media-v15487996p4NXDNa1196250172Med.jpg * @param mediaLink $link * @return string Url of remote image file */ public function getPreviewUrl() { return parent::getPreviewUrl(); // REST: http[s]://www.veoh.com/rest/v2/execute.xml?method=veoh.video.getVideoThumbnails // http://p-images.veoh.com/image.out?imageId=thumb-v891059AqzRAHhs-5.jpg // www.veoh.com/rest/video/v891059AqzRAHhs/details if ($videoId = $this->getVideoId()) { if ($info = simplexml_load_file('http://www.veoh.com/rest/video/' . $videoId . '/details')) { $video = $info->xpath('//video'); return strval($video['fullHighResImagePath']); } return 'http://p-images.veoh.com/image.out?imageId=thumb-' . $videoId . '-30.jpg'; } return parent::getPreviewUrl(); return false; }
/** * Get thumbnail image url * http://ll-images.veoh.com/media/w120/media-v15487996p4NXDNa1196250172Med.jpg * @param mediaLink $link * @return string Url of remote image file */ public function getPreviewUrl() { return parent::getPreviewUrl(); }