here is a sample for these posts:
Simply paste the URL of a “watch” page on Vimeo or YouTube (browse to the video you like, copy the URL from the browser’s address bar, and paste it into this widget). The video will play, outside of the context of the site. This sample uses the FLVPlayer from the Tutorials I wrote a while ago + the KeepVidClient from yesterday’s post. It’s not exciting per say, but I was asked to post working samples of the work, so here is my first go!
Due to the fact that KeepVid.com doesn’t have a valid crossdomain.xml file, I had to use the RESTProxy to avoid security sandbox issues when run from websites.
Full Source Code.
Excellent, but i don’t understand how you load the video from http://www.youtube.com/get_video without a security sandbox error?
it’s excelent! 🙂
i’m testing your library and it’s working properly when loading a flv (low resolution, ldUrl), but i receive null when trying to read the hdUrl in a video that i know that has it’s HD version. When i try to download it from keepvid it gives me the option to download the HD, and even in youtube i can see it in HD, but when i do a trace of evt.hdUrl i get null…
any ideas? could be something wrong in the RegExp of the KeepVidClient class when trying to know if there’s a high definition version?
anyway it’s an excelent work. Thank u for sharing this 🙂
the .mp4 that youTube returns as the HD vid is not encoded properly for Flash. The Vimeo HD url is however. This is not a problem with the library. Either KeepVid doesn’t return the proper URL or YouTube knows something I don’t about playing these .mp4’s in Flash.
Thanks for the comment!
ironically, YouTube doesn’t have the proper crossdomain.xml files everywhere it should. If you load the flv straight it works, no error. If you use the YouTube API to load their “player” url, you get security errors..
[…] YouTube decides to do this properly, I suggest using this approach as a form of silent protest. Of course, that would be illegal, hence I can’t use this […]
Thank you very much for posted this useful great article…
Thanks for this nice post….
i´m trying to load a youtube video but it doesn´t load..even i´ve some work with your fantastic API but it stop working too. do u know if there´s something wrong with keepvid?