开发者

Displaying video previews from various providers

开发者 https://www.devze.com 2023-03-07 23:04 出处:网络
My use case is kinda basic. According to the URL a user inputs, I want to have the good player displayed, that varies according to the input of course.

My use case is kinda basic. According to the URL a user inputs, I want to have the good player displayed, that varies according to the input of course.

For ins开发者_如何转开发tance, inputting http://www.youtube.com/watch?v=rv5OwTiBEiQ would display the preview of the Youtube player. The same goes with Dailymotion, Yahoo!, Vimeo, Justin.tv, Myspace...

Do you know is any Javascript plugin does this ? Ideally, it'd be based on Prototype.


In the Youtube case, all you have to do is get the video id of the url and put this in the follow URL:

http://img.youtube.com/vi/{video-id}/1.jpg

Then you have the link to the youtube preview image!

0

精彩评论

暂无评论...
验证码 换一张
取 消