├── test.html ├── README.md ├── youtube-video.coffee ├── youtube-video.js ├── test.coffee └── vendor └── coffee-script.js /test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # YoutubeVideo 2 | 3 | ## Intro 4 | 5 | A Javascript library to access the WebM (and other) streams for Youtube Videos. 6 | 7 | This is a little script we've extracted from http://omgig.com 8 | to directly access the WebM (and other formats) streams for Youtube Videos. 9 | 10 | ## Dependencies 11 | 12 | - jQuery 13 | 14 | ## Usage 15 | 16 | var youtubeId = "Q4-MnX5PfO8"; 17 | YoutubeVideo(youtubeId, function(video){ 18 | console.log(video.title); 19 | var webm = video.getSource("video/webm", "medium"); 20 | console.log("WebM: " + webm.url); 21 | var mp4 = video.getSource("video/mp4", "medium"); 22 | console.log("MP4: " + mp4.url); 23 | 24 | $("