Closed (fixed)
Project:
Flowplayer API
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2009 at 10:30 UTC
Updated:
2 Oct 2011 at 05:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
robloachDefinitely something that would be a great addition. Patches are very much welcome and it probably wouldn't be that difficult to do. If you look at theme_flowplayer, you'll see the creation of the div element. We'd have to pass the thumbnail in there as well as all other elements.
Thanks! I'd love to see a patch come out of this ;-) .
Comment #2
chrism2671 commentedI've managed to do it with a little hacking! Result is on the frontpage, here:
http://www.wikijob.co.uk
Comment #3
robloachWhat did you end up doing? Would love to see how you managed it.
Comment #4
naero commentedI'd love to see the code for this too! Please provide if you can!
Comment #5
aaron commentedsubscribe (for #520426: Thumbnails for Custom Video Field)
Comment #6
robloach$contents.
Comment #7
mewcrazy commentedIts working great.
But how can I reach the filenames of my files in "field_video1"?
$node->field_video1[0]['filename'] isnt working.
You can reach my Video Gallery at Lockerz Einladung
Comment #8
jbrown commentedi'm happy with #6
Comment #9
jbrown commentedhttp://drupal.org/cvs?commit=340806
http://drupal.org/cvs?commit=340804
Comment #10
robloachAh! Thanks for committing those! :-)
Comment #12
chrism2671 commentedAh sorry just spotted you guys requesting code above; if you still need it let me know and I'll dig it up! :-)
Comment #13
that0n3guy commentedHey, so I understand how to hack flowplayer.module and add something like $contents =
<img src="myimage.jpg">to the theme_flowplayer function to create a splash that uses "myimage.jpg", but how do I use this in my own module?Would I set $contents in nodeapi op=view or something?
Comment #14
marcus_clements commentedIn case it's useful this snippet for a node template uses an image field as a splash for the video:
Comment #15
wonder95 commentedAfter looking at the Flowplayer splash page help and the patch above in #6, I'm not seeing how the patch helps achieve what is shown on the Flowplayer page. I have the path to the image I want to use, but when I pass it as $contents to theme_flowplayer(), all I get is just the image with no play button, and then if I click on the image, I get the black screen with the play button and the control bar. What I would like is something like the second example on the Flowplayer page linked above.
In may case, I'm using Video module with Zencoder, and Zencoder generates thumbnail images and returns them, and they're available in the video field (at $video_node->field_video_upload[0]['data']['video_thumb'] in my case). So using this code:
I get just the image displayed, which makes sense, since with RobLoach's patch all that's returned is
However, if I try to add it as a background image, like so:
then I can see the top border of the image behind, but I still get the black/gray empty window with the play button.
Any thoughts on what I need to change to get the splash image to show with the play button?
Thanks.