Basically if one uses video module to transcode but tries to use swftools as the display formatter, it tries to grab the original file, not the transcoded file.

I think a lot of people use video/swftools combo, and profiles are an amazing addition, so I think this functionality would be highly useful to a lot of people.

I am willing to contribute to coding this, but as a soft programmer, I would first like some thoughts and direction as how to accomplish this. Thanks.

Comments

entrigan’s picture

One option:

Have a setting that says: "Use converted video module files if they exist"

Then in swftools.module around line 1392 add a conditional expression.

  // See if we're processing a filefield and get the path and description
 if (isset($element['#item']['filepath'])) {
    $swf = $element['#item']['filepath'];
    $options['othervars']['title'] = $element['#item']['data']['description'];
    $source = 'filefield';
  }

Pro: simple
Con: would probably require some regex