Youtube Data API in AS3 is ready!

Hello again,

I’ve gotten to a good level in my Youtube Data API. It’s now ready for use, I would recommend testing it a bit before putting into a production environment, but for experimenting and toying around, works good!

Here is a quick sample:

there you go. I hope I didn’t make any mistakes in this code. I will look upon it again on monday as I will be writing a tutorial for this library.

Have a good day!

UPDATE

The project is now available at Google Code, here: http://code.google.com/p/as3-youtube-data-api/

Cheers!

Martin

10 thoughts on “Youtube Data API in AS3 is ready!”

  1. Hi, im playing with the library and i have a few problems: in this code there is an error with line 48: video.viewCount.
    Throws me an error 1010

    another question: how can i to accede at the rating. Im trying with this in the while:

    video.rating.numRaters but it does’nt work

    thanks a lot and sorry for my english

  2. Sometimes there is no data (for example in this case, if there are no ratings) returned by the feed, and it causes errors when trying to access it. It is a pretty serious issue I have to resolve. I am on vacation now, I will take care of it mid-april when I come back home.

    Thanks for your comments…

  3. Thanks for your answer and enjoy your vacation :D

    I verified on youtube to see if the video loaded it has rating and it fails too…

    its ok this expresion => video.rating.numRaters ??

    bye

  4. hi there – awesome work.
    I am attempting to pull an xml feed from a youTube user profile into Doug McCunes ‘coverFlow’ Flex component.

    I know you have looked at the Flex IDE – do you have any comments/thoughts as to how I might go about this?

    cheers,
    Jas

  5. Martin — great work.
    Is it possible, now, to load an .flv from a videoID or do I have to load the .swf which would include all of the the standard next video stuff after the video has played.

    Thanks,
    Jon

  6. Hi,,,
    i just wana know that if it is possible to get video by searching a youtube URL…means if i paste youTube URL into a text input field will it be possible to get all information about that specific page/video…

    thanks

    Regards

    Billy Ash

  7. Hello

    I am using this AS3 class library load youtube thumbnail images into my flash interface. Now everything is working fine If I am running this on my computer locally but once I upload it to a live webserver it doesnot load the thumbnail images.

    Any idea of why this is not working is this something to do with AS3 security sandbox or other security related isseues?

    Thanks for your help in advance

  8. hi, I have the same issue yolo, does somebody know about this?

    When I put my site in my server, the player doesn’t show anything, I just can see y my navigator status bar the leyend “… waiting for…..

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">