Using FLVPlayer & KeepVidClient together

8 actionscript,as3,flash,youtube  |   December 25, 2008  |     1614

Hi Everyone,

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 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.



  • March 23, 2009 at 2:06 pm


    Excellent, but i don’t understand how you load the video from without a security sandbox error?

  • May 14, 2009 at 2:53 pm


    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 🙂


  • May 15, 2009 at 6:14 am

    Martin Legris


    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!

  • May 15, 2009 at 6:16 am

    Martin Legris


    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..

  • June 1, 2009 at 7:26 pm

    intense creativity » YouTube AS3 Wrapper for the ChromeLess Player

    […] 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 […]

  • June 4, 2009 at 2:18 am

    Flash Video Player

    Thank you very much for posted this useful great article…

  • July 13, 2009 at 2:39 am

    Flv Player

    Thanks for this nice post….

  • October 18, 2009 at 3:53 am


    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?

Leave a Reply