Video thumbnails

trainspotting - November 3, 2008 - 17:49
Project:Video
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

I am having a problem with video thumbnails for some reason. When I make a view to present some videos in a grid fashion , thumbnail images are shown as expected. But when I click on a thumbnail to watch the video, the link takes me to the thumbnail node rather than video. Does anyone know how to fix it? How can I re-direct users from thumbnail page to the video page when they click on the thumbnail? or how can I add a play button on the thumbnail node?

thanks for the help in advance..

#1

student297 - November 3, 2008 - 17:53
Version:5.x-1.x-dev» 5.x-1.x-dev

I think using Video module, thumbnails are created seperatedly in different folder. So The links u have or thumbnail images, not videos. But i am not sure how to fix this one though.

#2

trainspotting - November 4, 2008 - 00:12

Yes, you are right, thumbnail images are stored in different folder and have different urls and that's where the confusion comes in. I was wondering if anyone knows how to add a play button in the image thumbnail node to take the viewer to the video.At least that would partly solve the problem.

#3

trainspotting - November 6, 2008 - 02:33

Anybody, who knows a neat solution for this cosmic problem ? :)

#4

trainspotting - November 11, 2008 - 20:47
Status:active» fixed

I had a few email exchange with Fabio about this issue, and it turned out that the way I was creating the view was incorrect. But, in addition to that, he gave the answer to the question of how to relate a thumbnail image node to its video node, and I wanted to share it with ones, who might be interested in it. So here is his response;

if you really want to link from a thumb to the video node you will need to get the video node id (nid), just knowing the image node id (iid).

The problem is that we store the iid in the video db table as a PHP serialized data. So that video to thumb references are easy while thumb to video references are a pain in the ass.

Anyways.. you should:
query the video table for all the existing nodes
cicle on it (with PHP) and compare $node->serial_data->iid with the iid you already have.

As you should note the "query all and cicle on them" is a server resources heavy actions and it will *not* scale.
Such actions are usually done using SQL so that the db optimizes its work and do it fast.. but the db can't do it now as the iid is contained into a serialized (read hashed) field.

#5

System Message - November 25, 2008 - 20:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#6

mittalpatel - October 30, 2009 - 10:51
Status:closed» fixed

I wanted to do the same. Show thumbnail in grid fashion and take user to the video display page. To get it done, in views, I add following field
Video : Thumbnail (This will display the thumbnail image for the video.)
On settings of Video : Thumbnail keep "Link image to video" checked and Add the field. It will now take you the video display page.

Doing this I got what I wanted.

#7

heshanmw - November 9, 2009 - 01:56

Exactly, views will help to have grid type disply

#8

System Message - November 23, 2009 - 02:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.