Active
Project:
Flash Node
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2008 at 00:02 UTC
Updated:
3 Aug 2009 at 06:46 UTC
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
Comment #1
dan.crouthamel commentedI 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.
Comment #2
dleeward commentedIn 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.
Comment #3
dleeward commentedHad 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.
Comment #4
Mr.W.A.C. commentedO.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.
Comment #5
mattgilbert commentedsubscribe
Comment #6
gausarts commentedI 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:
If you have any better way, I'll be very happy. Hope that helps.
Comment #7
Yuki commentedsubscribe
Comment #8
Yuki commentedDear 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?
Comment #9
gausarts commentedThe 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