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.
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>
|
|
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. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
Subscribe by RSS
Subscribe by Email
6 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?