I am using the following to display media in a views template:

<?php print swf($fields['field_video_fid']->content); ?>

I have it in two sites with the exact same settings. On one site it works, on another it doesn't. The funny thing is that on the site it does not work, the video displays and plays in the node view when I use [swf file="movie.flv"]

Also, the test flash in admin/reports/swftools does not show up. However, as I said, the video DOES work in the node view. On the SWF Tools status page I have green checks all the way down. Every setting has been made, I get the A-OK all around. Then I get that error.

I'm hoping if I can get the test video to work on the status page, then maybe it will work in my views output page. But I don't know why its not showing up and yet, it is working on other parts of the site.

thanks.... K

Comments

kappaluppa’s picture

One more thing... on the SWF Tools status page if I right click in the area to the far left where the swf video is "supposed" to play, I can see where border for where the video should be. I check the source and get the path for the test swf. I can paste that path directly into the browser and it shows up.

here is more on this:

<?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.

===============

One more quirky thing, then I'm giving up for the day....

When I go to the module file: wftools.admin.status.inc

and I change this at line 250:
$html .= swf($file, array('params' => array ('height' => 150, 'width' => 150))); and use this instead

$html .= swf('http://inwithskin.com/drupal6/sites/all/modules/swftools/shared/swftools_test_file.swf'); The flash file does not show on the SWF Tools Status page. Not sure if that has anything to do with anything, I've just been attacking this problem from all angles.

Thanks,
K

makt’s picture

I am having the same problem! Did you find a solution yet?

I upgraded from SWFTools 6x-2.5 to 6x-3.0-beta4 and now I'm getting the error. When I was using the older version everything was working perfectly but I upgraded so I could have an option in views styles.

Thanks in advance!

bakr’s picture

the file and path are correct, it does exist "swftools_test_file.swf"

http://.../sites/all/modules/swftools/shared/swftools_test_file.swf

BUT, the problem is "q="

http://.../?q=sites/all/modules/swftools/shared/swftools_test_file.swf

Stuart Greenfield’s picture

This might be an issue in the beta-4 development package (the file handling mechanism was overhauled).

I've run some tests using the latest 6.x-3.x-dev and it seems ok using clean and non-clean urls, and using public and private file transfer.

Can you try the dev package and see if it still does the same thing?

Thanks.