I've created a patch where a user can set a dir/dcr video. Though Director Files are often games or interactive videos i think it can be useful.

I've added
- "Download Shockwave" link at bottom of "play page"
- mime type for both .dir and .dcr
- _video_get_parameters($node->serialized_data)

i've made the diff of the last CVS.

Comments

psicomante’s picture

StatusFileSize
new2.31 KB

very stupid error. Different function names.

fax8’s picture

Status: Needs review » Needs work

The patch looks a bit redundant.

In fact this code

     case 'dir':
        print theme('video_play_dcr', $node);
        break;
      case 'dcr':
        print theme('video_play_dcr', $node);
        break;

can be cleaned as

      case 'dir':
      case 'dcr':
        print theme('video_play_dcr', $node);
        break;

The same considerations to

	case 'dir':
	  return 'application/x-director dir';
	case 'dcr':
	  return 'application/x-director dcr';

Please also update FILE_TYPES.txt in order to get this patch committed.

Fabio

psicomante’s picture

StatusFileSize
new2.2 KB

I've cleaned the code and updated FILE_TYPES.txt

psicomante’s picture

Assigned: Unassigned » psicomante
StatusFileSize
new2.2 KB

I've cleaned the code and updated FILE_TYPES.txt

fax8’s picture

patches above does not updates FILE_TYPES.txt .
Please use directory diff .

Fabio

psicomante’s picture

Category: task » feature
Status: Needs work » Reviewed & tested by the community
StatusFileSize
new6.34 KB

I've made the directory diff. I've also correct a bug similar to 1.36 committ. It's about "multi-download" anchor.

psicomante’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new6.44 KB

solved an incompatibility with IE

fax8’s picture

Status: Needs review » Fixed

Committed to cvs. Thanks.

Fabio

Anonymous’s picture

Status: Fixed » Closed (fixed)