I want to create the effect when a user hovers over a thumbnail of a video it will preview the video by showing a certain number of frames from that video.
Is there a jquery plugin or other type of tutorial that teaches this effect?
I want to create the effect when a user hovers over a thumbnail of a video it will preview the video by showing a certain number of frames from that video.
Is there a jquery plugin or other type of tutorial that teaches this effect?
You won't find a specific plugin that will capture all of this behaviour as creating this will involve the use of a few different technologies.
Capturing the Frames
The first step will be capturing frames from the video for use later. If the website is allowing users to upload videos then you will need some way of processing them, the command line tool ffmpeg (http://ffmpeg.org/) will allow you to do this, a similar question of how to extract the individual frames has been answered here: http://ubuntuforums.org/showthread.php?t=1141293
If you're using Rails as your framework then you a file upload tool like Paperclip or CarrierWave provide some nice hooks into the shell for you to use after the upload has finished and you need to process it. You may also want to convert the video to a format that's compatible for serving up and displaying in the browser, possibly through a flash player or HTML5 video element.
Displaying the Frames
Once the frames have been captured you will need to store them on your server and associate them with the video file, again Paperclip or CarrierWave will make this easier to do. The front end logic will follow these steps:
Convert n
frames to an animated gif. Use a single frame of the video as the default state image and swap on hover.
Stop a gif animation onload, on mouseover start the activation