Flex Youtube Interface
Update: 4 Nov 2009
Proxy file is changed again!!! to get the correct flv url.
Thanks to NGCoders for the php proxy.
This is a simple youtube interface created in flex using theĀ as3-youtube-data-api . I also used the Flex Video Player from http://www.fxcomponents.com/ and Kingnare theme from Scalenine.
Right Click to view the Source .
Click here or on the image below to view the app

I used your application in an implementation of mine.
However as soon as I upload it on a web server – security warnings prevent it from working. I read about the PHP stub file but did not understand anything.
Can you please tell me how you got round the problem in your app. I am using the same method.
Georgi
March 1, 2009 at 11:32 pm
Just dropping by.Btw, you website have great content!
Daquan
March 3, 2009 at 6:33 am
Hello Georgi,
I am using a .NET stub file, but in both cases the purpose is the same. What it does is when we pass in the mediaPlayerUri (ie the link to the html page with the video), it downloads the html page in text format and returns the text to the flex application. Flex application parses the received text and finds out the required ids.
Hope that may help you
Subeesh
subeesh
March 4, 2009 at 4:27 am
Hi,
I just downloaded your source code, apparently the application runs fine. When I launch it I get an error “sercurity error acessing url”. The search feature works fine, but when I double click a video to watch, I get the same error message. Could you perhaps help me out how to solve this error?
Dhawan
March 18, 2009 at 9:52 pm
Hi Subeesh,
Could you help me out with the issue, as it is becoming quite urgent now.
Thanks
Dhawan
March 24, 2009 at 11:17 pm
You are getting that error because, when you upload the application to the server, it is trying to access the proxy file from my test server.This causes a crossdomain issue.
You have to create your own proxy and put it in the same server you are uploading the application or some other server where you have access and refer that proxy from your application.
Hope that helps
subeesh
March 25, 2009 at 4:31 am
Subeesh, Thanks for the help with getting started with YouTube in Flex 3. I have a question to the legitimy of this approach.
I implemented your approach online and connected to my own server, but with-in a couple days my Videos, no longer played. I was still able to access the feeds, which are done through the YouTube API. However, the parsing of the HTML page and pulling the videoID does not seem to be a practice YouTube likes.
I ended up having to use the Tubeloc project video display in conjunction with your feed display to get everything to work right.
So, I was just wondering if you have any thoughts on this. I’m wondering why your site is still able to play the YouTube videos in this manor? Any thoughts would be appreciated.
Thanks,
Jigar
Jigar P.
April 8, 2009 at 3:48 pm
hey the video doesnt load …
pls can u let us kno
aditya
July 20, 2009 at 10:20 am
Thanks to sharing ur codes
vinoddanims
July 22, 2009 at 8:40 am
[...] http://subeesh.wordpress.com/2009/02/02/flex-youtube-interface/ [...]
Youtube and Flex : 40666
October 1, 2009 at 11:27 am
can u fix this code? i can’t load the video
reang
October 31, 2009 at 8:07 pm
It is working now
subeesh
November 4, 2009 at 8:14 pm