I would like to use the 'image' flashvars of the JW Player I have set up with jquery_media. I can get this working then I set it in the flashvars field on the setting page, but what I really want to do is use the value of an imagefield on the current node, so:

image: $node->field_video_still['0']['filepath']

Obviously this wont work on the modules setting page so I think I'll need to set it in the content types template.

This will only show on the node view page with a single video, not a list page, so I'm not worried about multiple videos being assigned the same image (although it would be nice to be able to do that in future).

I suppose the wider question is: how do I set flashvars from the node-[content-type].tpl.php file?

Thanks

Comments

spiffyd’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

This is really useful, especially for customizing thumbnails on videos!

jlevis’s picture

Has anyone been able to get this working?

It would be great to be able to pick a still frame from the video to have it display before playing instead of the default black box with a play button in the middle.

ktonini’s picture

subscribing