04.27About
Hi,
My name is Martin Legris, you can view my profile on LinkedIn here. I am currently offering my services on a contractual basis; I do not work for Advertising in any way as I prefer to build applications using ActionScript. Which means, no micro-sites, no push marketing initiatives, no banner ads.
I will however participate in the creation of tools which can enhance the shopping experience.
I also act as a technical trainer, helping people migrate from AS2 to AS3, coach teams on best practices, and can be hired as a project lead for your RIA development efforts. Indeed I have in depth knowledge and experience both on the client side and server side.
You can contact me at mlegris (à) newcommerce (point) ca …
I hope you enjoy this blog, I put quite a bit of effort into it, however it is natural for me to share the knowledge and experience I accumulate; i simply love it!
Take good care
Martin

Hi,
I have just read your tutorial on the YouTube API and i played with a bit and it seems quite interresting. One thing i’m trying now, and i hope you have the time to throw me a bone, is a user cna input the url of a video, say:
http://youtube.com/watch?v=JKf7pPj6T7M
I parse out the id, now how would i go about requesting the XML for the said video? it’s not quite clear to me how youtube wants me to retrieve the data.
Thanks in advance,
Kevin.
March 12th, 2008 at 4:50 am
Hi Kevin,
I updated the library. Indeed it wasn’t obvious, in fact the official docs on their website don’t describe how. But I figured it out. You will want to use the function getVideo and catch the event VideoDataEvent.VIDEO_INFO_RECEIVED on the YouTubeClient itself.
I put a new version up on the google code project.
Cheers!
March 13th, 2008 at 9:28 am
hello,
first of all i want to tell you that this library is very cool!
What i am trying to do now…is to play this kind of url:
http://youtube.com/watch?v=JKf7pPj6T7M
With mediadisplay component it works simply passing the url to the contentpath property.
Using AS3 means ..no mediadisplay but only flvPlayback a svideo player… and with this component it won’t work!
How can i solve this stupid problem?
Thanks in advance,
Alessandro
May 9th, 2008 at 9:17 am
boring!
August 15th, 2008 at 9:57 am
Hi there, Martin.
I’ve downloaded the youtube client and i can’t understand how to retrieve the FLV-stream by video ID (example: JKf7pPj6T7M)
That’s the only thing i need for my project - to load FLV via ID.
pS: Could you please show an example of loading flvs via ID. looking forward to your reply via email. Thx a lot.
October 24th, 2008 at 5:17 am
Hello,
Thanks a lot for the very usefull YouTube API .
I have the same problem as JLoa in the previous post :
i can’t find the way to retrieve the FLV-stream by video ID.
Perhaps the only way is to use the method you describe in this post :” Library to get direct access to YouTube & Vimeo FLV’s in AS3″.
Perhaps there is a simpler method using just the YouTube API ?
Any help appreciated…
February 15th, 2009 at 11:26 am
#Ced
There is no way in the API to get direct access to the FLV. They want you to embed their .swf file (their own player) so they can track usage & statistics. It is possible to remove almost all the chrome on their player, so you can make it look any way you want. I haven’t investigated yet, but there is a youtube player api on google code.
Or, you can use the KeepVidClient which I wrote, but this practice is on the edge of legality.
February 15th, 2009 at 1:31 pm
ok Martin, thanks for this prompt answer.
i understand this limitation and will follow your advice with a customized youtube player.
Let me thank you for sharing your “intense creativity” , i’ve learned a lot here
Please keep up the good work !
February 15th, 2009 at 3:42 pm
Hey Martin,
I read your excellent tutorial from May 2008 about consuming REST services from AS3. Do you have any hints about doing what the 4th part was supposed to explain? ie make sure the singleton class returns the data we requested instead of another request?
Thanks a lot for your excellent work and for sharing it!
Antoine
February 18th, 2009 at 1:33 pm
Hello Martin, your YouTube API is fantastic. Well done!
I do have a small problem. I am trying to retrieve the Rating value for a video and it does not seem to work.
Also does the API have support for telling me which comments are responses to other comments?
As soon as my project goes live, you will be one of the first to know about it.
Thankyou very much for making something so cool, and sharing it with us.
Regards
Steve
May 5th, 2009 at 1:50 am