Title: [Plugin: Video Thumbnails] JetPack Compatability
Last modified: August 19, 2016

---

# [Plugin: Video Thumbnails] JetPack Compatability

 *  [DanMichel](https://wordpress.org/support/users/danmichel/)
 * (@danmichel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-jetpack-compatability/)
 * It doesnt work with JetPack video embeds other than YouTube. I only use Vimeo

Viewing 1 replies (of 1 total)

 *  [3dolab](https://wordpress.org/support/users/3dolab/)
 * (@3dolab)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-jetpack-compatability/#post-1988564)
 * edit the plugin file _video-thumbnails.php_
    and replace the default Vimeo section
   with:
 *     ```
       // Vimeo
       		if($new_thumbnail==null) {
   
       			// Standard embed code
       			preg_match('#<object[^>]+>.+?http://vimeo.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)&.+?</object>#s', $markup, $matches);
       			if(!isset($matches[1])) {
       				preg_match('#<object[^>]+.+?http://vimeo.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)&.+?</object>#s', $markup, $matches);
       			}
   
       			// Find Vimeo embedded with iframe code
       			if(!isset($matches[1])) {
       				preg_match('#http://player.vimeo.com/video/([0-9]+)#s', $markup, $matches);
       			}
   
       			// If we still haven't found anything, check for Vimeo embedded with JR_embed
       			if(!isset($matches[1])) {
       		    	preg_match('#\[vimeo id=([A-Za-z0-9\-_]+)]#s', $markup, $matches);
       		    }
   
       			// If we still haven't found anything, check for Vimeo URL
       			if(!isset($matches[1])) {
       			preg_match('#http://w?w?w?.?vimeo.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)#s', $markup, $matches);
       		    }
       			if(!isset($matches[1])) {
       		    	preg_match('#http://w?w?w?.?vimeo.com/([A-Za-z0-9\-_]+)#s', $markup, $matches);
   
       		    }
   
       			// If we still haven't found anything, check for Vimeo shortcode
       			if(!isset($matches[1])) {
       		    	preg_match('#\[vimeo clip_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
   
       		    }
       			if(!isset($matches[1])) {
       		    	preg_match('#\[vimeo video_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
       		    }
       			if(!isset($matches[1])) {
       		    	preg_match('#\[vimeo ([A-Za-z0-9\-_]+)*]#s', $markup, $matches);
       		    }
       		//echo '<pre>MATCH:';print_r($matches[1]);echo '</pre>';
       			// Now if we've found a Vimeo ID, let's set the thumbnail URL
       			if(isset($matches[1])) {
       				$vimeo_thumbnail = getVimeoInfo($matches[1], $info = 'thumbnail_large');
       				if(isset($vimeo_thumbnail)) {
       					$new_thumbnail = $vimeo_thumbnail;
       				}
       			}
       		}
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Video Thumbnails] JetPack Compatability’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/video-thumbnails_3e6f7f.svg)
 * [Video Thumbnails](https://wordpress.org/plugins/video-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/video-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-thumbnails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [3dolab](https://wordpress.org/support/users/3dolab/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-jetpack-compatability/#post-1988564)
 * Status: not resolved