芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/minscoop.com/app/Libraries/VideoURLParser.php
parse($url); return $video->getEmbedUrl(); } catch (\RicardoFiorani\Exception\NotEmbeddableException $e) { return null; } } //get video thumbnail public function getVideoThumbnail($url) { try { $vsm = new VideoServiceMatcher(); $video = $vsm->parse($url); $thumbnail = $video->getLargestThumbnail(); if (empty($thumbnail)) { $thumbnail = $video->getSmallThumbnail(); } return $thumbnail; } catch (\RicardoFiorani\Exception\NotEmbeddableException $e) { return null; } } }