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