--- video.module	2006-05-14 13:06:57.343750000 +0200
+++ video1.php	2006-05-14 13:37:51.703125000 +0200
@@ -1070,6 +1070,12 @@
       case 'youtube':
         print theme('video_play_youtube', $node);
         break;
+      case 'dir':
+      case 'dcr':
+        print theme('video_play_dcr', $node);
+        break;
       default:
         drupal_set_message('Video type not supported', 'error');
         drupal_goto("node/$node->nid");
@@ -1137,6 +1143,34 @@
 }
 
 /**
+ * Play Director .dcr files.
+ *
+ * @param $node
+ *   object with node information
+ *
+ * @return
+ *   string of content to display
+ */
+
+function theme_video_play_dcr($node) {
+  $file = basename($node->vidfile);
+  $url = _video_get_fileurl($node->vidfile);
+  //print($file.'<br>'.$url); //Remove once fully tested.
+  $output = '<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" width="'.$node->videox.'" height="'.$node->videoy.'" id="Player">
+			   <param name="allowScriptAccess" value="sameDomain" />
+               <param name="movie" value="'.$node->vidfile.'" />'
+				. _video_get_parameters($node->serialized_data) .'
+               <param name="quality" value="high" />
+               <embed src="'.$node->vidfile.'" width="'.$node->videox.'" height="'.$node->videoy.'" name="Player" TYPE="application/x-director" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/" />
+             </object>';
+  $output = _theme_video_format_play($output, t('http://www.macromedia.com/shockwave/download/'),
+                                      t('Link to Macromedia Shockwave Player Download Page'),
+                                      t('Download latest Shockwave Player'));
+   return theme('page', $output);
+}
+
+
+/**
  * Play videos from in Quicktime format
  *
  * @see http://developer.apple.com/internet/ieembedprep.html
@@ -1663,6 +1697,10 @@
       return 'video/3gpp';
     case 'mp4':
       return 'video/mp4';
+	case 'dir':
+	case 'dcr':
+	  return 'application/x-director dcr';
     case 'youtube':
       // We can't support this properly, so return false.
       return false;
