src/Adapter/Dailymotion/DailymotionServiceAdapter.php 1 location
|
@@ 72-79 (lines=8) @@
|
69 |
|
* @return string |
70 |
|
* @throws InvalidThumbnailSizeException |
71 |
|
*/ |
72 |
|
public function getThumbnail($size, $secure = false) |
73 |
|
{ |
74 |
|
if (false == in_array($size, $this->getThumbNailSizes())) { |
75 |
|
throw new InvalidThumbnailSizeException(); |
76 |
|
} |
77 |
|
|
78 |
|
return $this->getScheme($secure) . '://www.dailymotion.com/' . $size . '/video/' . $this->videoId; |
79 |
|
} |
80 |
|
|
81 |
|
/** |
82 |
|
* Returns the small thumbnail's url. |
src/Adapter/Facebook/FacebookServiceAdapter.php 1 location
|
@@ 72-79 (lines=8) @@
|
69 |
|
* @return string |
70 |
|
* @throws InvalidThumbnailSizeException |
71 |
|
*/ |
72 |
|
public function getThumbnail($size, $secure = false) |
73 |
|
{ |
74 |
|
if (false == in_array($size, $this->getThumbNailSizes())) { |
75 |
|
throw new InvalidThumbnailSizeException(); |
76 |
|
} |
77 |
|
|
78 |
|
return $this->getScheme($secure) . '://graph.facebook.com/' . $this->getVideoId() . '/picture'; |
79 |
|
} |
80 |
|
|
81 |
|
/** |
82 |
|
* Returns the small thumbnail's url. |
src/Adapter/Youtube/YoutubeServiceAdapter.php 1 location
|
@@ 67-74 (lines=8) @@
|
64 |
|
* @return string |
65 |
|
* @throws InvalidThumbnailSizeException |
66 |
|
*/ |
67 |
|
public function getThumbnail($size, $secure = false) |
68 |
|
{ |
69 |
|
if (false == in_array($size, $this->getThumbNailSizes())) { |
70 |
|
throw new InvalidThumbnailSizeException(); |
71 |
|
} |
72 |
|
|
73 |
|
return $this->getScheme($secure) . '://img.youtube.com/vi/' . $this->getVideoId() . '/' . $size . '.jpg'; |
74 |
|
} |
75 |
|
|
76 |
|
/** |
77 |
|
* @return array |