37 return sprintf(
'https://vimeo.com/%s', rawurlencode($videoId));
50 if (!file_exists($temporaryFileName)) {
52 $previewImage = GeneralUtility::getUrl($oEmbedData[
'thumbnail_url']);
53 if ($previewImage !==
false) {
54 file_put_contents($temporaryFileName, $previewImage);
55 GeneralUtility::fixPermissions($temporaryFileName);
58 return $temporaryFileName;
75 if (preg_match(
'/vimeo\.com\/(?:video\/)?([0-9a-z\/]+)/i', $url, $matches)) {
76 $videoId = $matches[1];
78 if (empty($videoId)) {
94 'https://vimeo.com/api/oembed.%s?width=2048&url=%s',
95 rawurlencode($format),
96 rawurlencode(sprintf(
'https://vimeo.com/%s', rawurlencode($mediaId)))