diff --git a/sites/all/modules/contrib/field_slideshow/field_slideshow.module b/sites/all/modules/contrib/field_slideshow/field_slideshow.module
index 20d4029..4f61767 100644
--- a/sites/all/modules/contrib/field_slideshow/field_slideshow.module
+++ b/sites/all/modules/contrib/field_slideshow/field_slideshow.module
@@ -912,27 +912,52 @@
         $variables['items'][$num]['image'] = theme('image', $image);
       }
     }
-    elseif ($item['type'] == 'video' && module_exists('media_youtube')) {
-      $display = array('settings' => array('image_style' => $variables['image_style']));
-      // Video settings
-      $video = array();
-      $video['uri'] = $item['uri'];
-      $array_image_style = image_style_load($variables['image_style']);
-      foreach ($array_image_style['effects'] as $key => $value) {
-        $int_width = $value['data']['width'];
-        $int_height = $value['data']['height'];
-      }
-      // Get default settings for media_youtube_video so we don't throw notices later.
-      $formatter_info = media_youtube_file_formatter_info();
-      $video['options'] = $formatter_info['media_youtube_video']['default settings'];
-      // Set custom width + height.
-      $video['options']['width'] = $int_width;
-      $video['options']['height'] = $int_width * .5625; // 16x9 aspect ratio.
-      // Specify https for video.
-      $video['options']['protocol_specify'] = TRUE;
-      $video['options']['protocol'] = 'https:';
+    // If we have a video, let the related module handle it.
+    elseif ($item['type'] == 'video') {
+        $scheme = file_uri_scheme($item['uri']);
+        // If we have a Youtube video, let media_youtube module handle it.
+        if($scheme == 'youtube' && module_exists('media_youtube')){
+            $display = array('settings' => array('image_style' => $variables['image_style']));
+            // Video settings
+            $video = array();
+            $video['uri'] = $item['uri'];
+            $array_image_style = image_style_load($variables['image_style']);
+            foreach ($array_image_style['effects'] as $key => $value) {
+              $int_width = $value['data']['width'];
+              $int_height = $value['data']['height'];
+            }
+            // Get default settings for media_youtube_video so we don't throw notices later.
+            $formatter_info = media_youtube_file_formatter_info();
+            $video['options'] = $formatter_info['media_youtube_video']['default settings'];
+            // Set custom width + height.
+            $video['options']['width'] = $int_width;
+            $video['options']['height'] = $int_height;
+            // Specify https for video.
+            $video['options']['protocol_specify'] = TRUE;
+            $video['options']['protocol'] = 'https:';
+            
+            $variables['items'][$num]['image'] = theme('media_youtube_video', $video);
+        }
+        // If we have a Dailymotion video, let media_dailymotion module handle it.
+        elseif ($scheme == 'dailymotion' && module_exists('media_dailymotion')) {
+            $display = array('settings' => array('image_style' => $variables['image_style']));
+            // Video settings
+            $video = array();
+            $video['uri'] = $item['uri'];
+            $array_image_style = image_style_load($variables['image_style']);
+            foreach ($array_image_style['effects'] as $key => $value) {
+              $int_width = $value['data']['width'];
+              $int_height = $value['data']['height'];
+            }
+            // Get default settings for media_youtube_video so we don't throw notices later.
+            $formatter_info = media_dailymotion_file_formatter_info();
+            $video['options'] = $formatter_info['media_dailymotion_video']['default settings'];
+            // Set custom width + height.
+            $video['width'] = $int_width;
+            $video['height'] = $int_height;
 
-      $variables['items'][$num]['image'] = theme('media_youtube_video', $video);
+            $variables['items'][$num]['image'] = theme('media_dailymotion_video', $video);
+          }
     }
 
     // Get image sizes and keeps the bigger ones, so height is correctly calculated by Cycle
@@ -1030,18 +1055,37 @@
           }
         }
         if (isset($item['title']) && drupal_strlen($item['title']) > 0) $thumbnail['title'] = $item['title'];
-        // If we have a YouTube video, let media_youtube module handle it.
-        if ($item['type'] == 'video' && module_exists('media_youtube')) {
-          $file = new stdClass();
-          $file->uri = $item['uri'];
-          $file->filename = $item['filename'];
-          $display = array();
-          if ($thumbnail_style) {
-            $display['settings']['image_style'] = $thumbnail_style;
-          }
-          global $language;
-          $thumbnail = media_youtube_file_formatter_image_view($file, $display, $language->language);
-          $thumbnail_output = render($thumbnail);
+        // If we have a video, let the related module handle it.
+        if ($item['type'] == 'video'){
+            // If we have a YouTube video, let media_youtube module handle it.
+            $scheme = file_uri_scheme($item['uri']);
+            if($scheme == 'youtube' && module_exists('media_youtube')){
+                $file = new stdClass();
+                $file->uri = $item['uri'];
+                $file->filename = $item['filename'];
+                $display = array();
+                if ($thumbnail_style) {
+                  $display['settings']['image_style'] = $thumbnail_style;
+                }
+                global $language;
+                $thumbnail = media_youtube_file_formatter_image_view($file, $display, $language->language);
+                $thumbnail['#attributes'] = array('class' => array('pager-video'));
+                $thumbnail_output = render($thumbnail);
+            }
+            // If we have a Dailymotion video, let media_dailymotion module handle it.
+            elseif($scheme == 'dailymotion' && module_exists('media_dailymotion')){
+                $file = new stdClass();
+                $file->uri = $item['uri'];
+                $file->filename = $item['filename'];
+                $display = array();
+                if ($thumbnail_style) {
+                  $display['settings']['image_style'] = $thumbnail_style;
+                }
+                global $language;
+                $thumbnail = media_dailymotion_file_formatter_image_view($file, $display, $language->language);
+                $thumbnail['#attributes'] = array('class' => array('pager-video'));
+                $thumbnail_output = render($thumbnail);
+            }
         }
         else {
           if ($thumbnail_style) {
