tags:

views:

240

answers:

1

I just see the bing Video search , it is very good looking,

I am planning to make some thing like that,

I have different source of video (like Youtube, uploded video etc)

I just want to implement the "mouse hover" video play and pause functionality.

how can I implement that, any idea?

+2  A: 

This is done through Flash. Each "video" listed is a Flash movie showing a static image, when you move the mouse over it an event handler in the Flash script fires and starts playing a snippet. When it detects a "mouse out" it stops playing the movie.

So you'll need to do something similar. A Flash movie that accepts a URL to an arbitrary movie file some where on the internet. The Flash movie would load a bit of that movie and show the first frame when the movie's been loaded. When a mouse over is detected you play the loaded snippet, and on mouse out you stop playback.

The URL would be something that your search engine provide.

I'm sure you can do the same with Silverlight if that is your preferred toolkit.

Skurmedel
thanks , But I have some Youtube video URL's also.how to play those youtube video's in my flash player?
openidsujoy