I'm not sure if this is a feature request for SWF Tools or Flash Nodes but I'll shoot anyway...

Flash videos usually have thumbnails associated with them. I'd like the thumbs to be saved in such a way that they can always be recognized as the video's thumb. This way, I don't have to specify flashvars every time I show that video to get a thumb.

I'm not sure what's the best solution for this but some ideas I had were...
- integration with Image and Image Attachment module?
- some way to make the thumb image a node as well

This allows the thumb to have access to Views as well!

Comments

dan.crouthamel’s picture

I like this idea as well. I'd like to be able to attach a thumbnail to the FlashNode, and have it use it as the preview for the flash file. Additionally, allow the image to be used in teasers & views, so that clicking on it actually takes you to the full flashnode and play the file there.

dleeward’s picture

In version 5, you can put a .jpg file in the same folder as the flash file and it will automatically display a preview. The problem is that when you attach the file on the flashnode upload, it goes into a different folder than the flash file.

Does anyone know how to change the path the file attachment gets uploaded to?

Edited:

This appears to work for nodes displayed using PHP but I can't get it to work with macros.

dleeward’s picture

Had forgotten how I did it... Here's how in version 5:

1. Attach the flash file normally.
2. Open advanced flashnode options and add the following to Flashvars: image=thumbnail.jpg (or whatever the filename is)
3. Open File Attachments and attach the thumbnail image.

If there is already a filename with the same name, Drupal will change the name by adding a suffix to the end to make it unique and you will have to edit the Flashvar name. You can see the actual filename under the attached file description when you edit the node.

I've also found that if you click the attach button, the file will get uploaded and then another copy will get uploaded when you submit.

Mr.W.A.C.’s picture

O.K. Thanks from those using D5 and NOW maybe someone has some help for us using version 6? This would be great for displaying games.

mattgilbert’s picture

subscribe

gausarts’s picture

I do not want to enter flashvars to grab the thumbnail image every time I create a node. I am not installing ffmpeg either. So here is what has worked for me at least by now :)

You must have/ create a node-flashnode.tpl ready to make it more specific to flashnode.module node:

1. Create an image field using imagefield, name it say "thumbnail", and play around with imagecache for more flexibilities
2. Create the flashnode with image uploaded, and all necessary content. If you have contemplate installed, find out anything you need to grab in body or teaser boxes. This will be added to step #3 below
3. Add this to your node-flashnode.tpl, replacing the $content with:

    //Make sure the path to the thumbnail is available
    if ($node->field_thumbnail[0]['filepath']){
    $node->flashnode['flashvars'] = 'image=/'. $node->field_thumbnail[0]['filepath'];
    }
   // Add more paramaters here as necessary

    print theme('flashnode', $node->flashnode);

   // Add more content here, the body, caption, etc

If you have any better way, I'll be very happy. Hope that helps.

Yuki’s picture

subscribe

Yuki’s picture

Dear gausarts,

Did it mean that we can see still image before playing video inside flowplayer?
Could you please emaborate how to do this?

Suppose:
1) You must have/ create a node-flashnode.tpl

Where to copy this file?

2) Is the file name is node-flashnode.tpl or node-flashnode.tpl.php ???

3) what do you mean by // Add more paramaters here as necessary

COuld you please kindly describe step by step?

gausarts’s picture

The above works well with JW so far. I have not tried flowPlayer. And I read somewhere in the issue queue that Flashnode author hasn't dived more into Flowplayer CMIIW.

The thumbnail image is displayed inside the player prior to playing, if you set autostart to false (which is default). What I did is actually to avoid redundancy with adding thumbnail every time I create a video node. I tried to simplify what the handbook says => http://drupal.org/node/216909

You must create node-flashnode.tpl.php and place it in your theme folder. More parameters are available somewhere in Flashnode handbook => http://drupal.org/node/214846.

UPDATE: the exact link => http://drupal.org/node/215249