More confusion with SWF Tools.... {heavy sigh}

Events happening in the community are now at Drupal community events on www.drupal.org.
kappaluppa's picture

I am trying to output video using SWF Tools with views, but am getting errors saying it cannot see the flash content. This is my testing:

<?php
print $fields['field_video_fid']->content;
?>
yields this: http://www.inwithskin.com/drupal6/sites/default/files/Cuteraflash.flv

<?php
print swf('http://www.inwithskin.com/drupal6/sites/default/files/Cuteraflash.flv');
?>
yields the video displayed correctly.

<?php
print swf($fields['field_video_fid']->content);
?>
yields error: You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

A strange twist to this is that it works on another site on the same server.... I'm tearing my hair out here!!!

Any ideas/suggestions/supportive cursing would be appreciated!
Thanks!
K

Comments

Is the display formatter outputting a link?

aaron's picture

I suspect that

<?php
$fields
['field_video_fid']->content
?>
is actually a link, rather than a filepath. You might do better with
<?php
print $fields['field_video_fid']->filepath;
?>
I believe. (Or do a devel load if you have the devel module installed; I forget the actual items in that field.

Might take a look at jQuery Media + Filefield as well: http://drupaltherapy.com/filefield .

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

Video

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: