Introduction:
In
this article I will explain how to create or generate thumbnails from YouTube
videos in JQuery using Asp.net.
Description:
In previous article I explained Generate thumbnail from images in asp.net and many articles relating to JQuery, asp.net, SQL Server etc. Now I will explain how to generate or create thumbnails from YouTube videos using JQuery in asp.net.
In previous article I explained Generate thumbnail from images in asp.net and many articles relating to JQuery, asp.net, SQL Server etc. Now I will explain how to generate or create thumbnails from YouTube videos using JQuery in asp.net.
To
generate thumbnails from YouTube videos we can use YouTube API URL that would be like this
http://img.youtube.com/vi/YouTubeVideoId/0.jpg
|
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>JQuery Create Thumbnails For YouTube Videos</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
</script>
<script type="text/javascript">
$(document).ready(function()
{
$('#imgThumb0').attr('src', 'http://img.youtube.com/vi/TzzGPfVx32M/0.jpg');
$('#imgThumb1').attr('src', 'http://img.youtube.com/vi/TzzGPfVx32M/2.jpg');
})
</script>
</head>
<body>
<form id="form1"
runat="server">
<div>
<img id="imgThumb0"
alt="Thumbnail0"
/>
<img id="imgThumb1"
alt="Thumbnail1"
/>
</div>
</form>
</body>
</html>
|
Demo
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
10 comments :
hi suresh, can you post any article for capturing thumbnails from a video file present in our folder of the project...
thanks
shameer ali
hi,
thanks for all link
all link are supported me in my project so,
thanks....
HIREN
hi..
i am suresh kumar from tamilnadu... can you tell me how to add a video in my website???
please help to me..
thanx
So how to get the time of that image?
How to type words on the image? What kind of software can I use?
Sir can u please help me in making youtube like site. Can u please tell me which is the best way to store and display youtube videos in asp.net c#.
but please how do i use this example to create a thumbnail for videos i uploaded on my system not youtube?.
suresh kumar we have video tag in html
best site for .net
Note: Only a member of this blog may post a comment.