Following instructions in this post (http://drupal.org/node/216872) I'm trying to add a still image/poster image to my Flash file that I uploaded via Flash node and SWF Tools. I'm using Flow Player. The Flash uploads fine. I add the following line to my Flashvars section in the Advanced Flash Node Options section:

image=/sites/default/files/testFlash.jpg

Then I save my node and it continues to display the Flash but with this error:

Could not display the flash because sites/default/files//sites/default/files/testFlash.jpg does not appear to exist.

However the file is there. It looks like it's duping the path for some reason. I have HTML input filter on.

Any ideas why this isn't working? Do I have the Flashvars incorrect?

-backdrifting

Comments

runssl’s picture

Did you try
image=testFlash.jpg

SSL Certificates

ambientdrup’s picture

Yeah, that's not working either.

I wonder - do I need to upload the Flash video when I add the flashvar, or will the flashvar stick to a video I previously uploaded? Would that cause an issue?

-backdrifting

ambientdrup’s picture

Any further suggestions?

-backdrifting

WorldFallz’s picture

Try:

image=sites/default/files/testFlash.jpg

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

ambientdrup’s picture

No, I already tried that - it gives this error:

Could not display the flash because sites/default/files/sites/default/files/testFlash.jpg does not appear to exist.

-backdrifting

WorldFallz’s picture

What about the entire url?

http://example.com/sites/default/files/testFlash.jpg

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

ambientdrup’s picture

No luck there either. Now what's weird is that it doesn't throw an error when I use the full URL. But the image doesn't show either.

-backdrifting

WorldFallz’s picture

Do you see the pic if you enter the full url into the browser address bar?

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

ambientdrup’s picture

Yes, the image loads without issue when I plug in the URL in my browser.

-backdrifting

mm167’s picture

if u can show me the web page (in internet), i can tell u what's wrong.

some hits..

about flashvars:
the basic is, flashvars is used for communication (passing data) between html and flash swf.
flashvars may be, i.e file name, file name with folder name, full url..etc
depends on how the flash swf make use of the parameters after import to the swf.

bye

Yuki’s picture

Did u get any solution of this?

i25’s picture

Was there any resolution on this question? I'm trying to do the same thing, and I'm having the same problems. The image shows fine if I browse to it in a browser, but it's not showing in FlowPlayer (no errors or anything; it just doesn't show up). Thanks.

i25’s picture

So after trying several approaches and filters etc, here is what finally worked... simple but beautiful. I'm sure this isn't groundbreaking, but I've been searching for this for days now. So for anyone trying to display a flash file (flv or swf etc), do the following:

Enable the swf filter (added with SWFTools filter). I added it to my Full HTML filter in the Input Filter admin settings.
Create a new node and place the following in the body:<swf file="video.flv" image="image.jpg">
Select the Full HTML input filter

That's it!

I tried Flash Node as well as the php filter, but they were both printing strange code for the flashvars output.

I hope this helps someone else!

Edited by WorldFallz - added <code> tags.

bramface’s picture

I was able to pull this off - using [swf file="sites/default/files/movie/movie.flv" image="sites/default/files/images/still.jpg"] - but only when displaying the node. If I created a block, or used "nodeasblock", the block showed:

"You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly."

This also occurs if I edit the node after viewing it once.

-Bram

--
Bram Moreinis
Greenfield Digital
http://greenfielddigital.com