Get youtube video screenshot using Javascript
Get youtube video screenshot using Javascript
Get youtube video screenshot using Javascript
Simple script to get the screenshot of a particular URL from youtube,
You can modify the url variable below according to your convenience.
We are parsing the URL you supply and get the video ID from the query string. Pass that video ID to the above image URL to get the screenshots / thumbnails.
You might also be interested in this tutorial Get Youtube Video Screenshot Using Jquery
<script type="text/javascript"> function getScreen( url, size ) { if(url === null){ return ""; } size = (size === null) ? "big" : size; var vid; var results; results = url.match("[\\?&]v=([^&#]*)"); vid = ( results === null ) ? url : results[1]; if(size == "small"){ return "http://img.youtube.com/vi/"+vid+"/2.jpg"; } else { return "http://img.youtube.com/vi/"+vid+"/0.jpg"; } } </script> <script type="text/javascript"> var url = "http://www.youtube.com/watch?v=hQVTIJBZook"; var imgUrlbig = getScreen(url); var imgUrlsmall = getScreen(url, 'small'); document.write('<img src="' + imgUrlbig + '" />'); document.write('<img src="' + imgUrlsmall + '" />'); </script>
Disclaimer: We are not responsible for usage of this script. This script is widely available in the Internet. All we are doing here is helping our users to understand how best we can use Javascript.
Get youtube video screenshot using Javascript,Incoming search terms:
- php youtube screenshot (27)
- php video screenshot (17)
- video screenshot php (13)
- php get video screenshot (12)
- youtube screenshot php (12)
- imgurlsmall = getscreen (10)
- php screenshot youtube video (5)
- Getyoutubevideoscreenshotusingsimplephpandjavascript|WebsiteScriptsAndTutorials (3)
- youtube video snapshot online (2)
- take snapshot from youtube videos online (1)
- take screenshot of video in php (1)
- snapshot from YouTube (1)
- snapshot for youtube (1)
- taking website screenshots using php url jquery (1)
- taking screenshot from a url php jquery (1)
- Tutorials for Easy Website Snapshot 6 2 (1)
- view video screenshot script (1)
- w2014 screenshot video (1)
- Website Screenshot Plugins php (1)
- Youtube get url &v= javascript (1)
- youtube to jpg php (1)
- youtube to mp3 script javascript (1)
- simpel script php grab youtube (1)
- screenshot website online from url php using jquery (1)
- Screenshot video php (1)
- Getyoutubevideoscreenshotusingsimplephpandjavascript-BestOnlineSolutionForWebsiteScriptsAndTutorials (1)
- get_youtube_videos php (1)
- How to create getvideo php? site (1)
- how to get screenshot using window function in php (1)
- javascript get screenshot (1)
- javascript getvideo (1)
- javascript screenshot video (1)
- javascript video snapshot (1)
- javascript:getVideo(2574) (1)
- php get video snapshot (1)
- php return screenshot of vimeo (1)
- php take screenshot of video (1)
- php video snapshot (1)
- php youtube video screenshot (1)
- retrieve youtube video file size js (1)
Fantastic post mate, helped me out a lot. Keep up the great posts.