Link to home
Start Free TrialLog in
Avatar of brainhax
brainhaxFlag for Saudi Arabia

asked on

embed youtube video in FLASH ..

how to embed youtube videos in to FLASH swf  ?

or what if i want to use my custom player ? can i use youtube stream in to my custom
player ?

ASKER CERTIFIED SOLUTION
Avatar of alien109
alien109
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As Alien109 mentioned, just find the URL to the FLV. I'm not entire sure if it will still work when uploaded to a server rather than running locally, but give it a try, and if it doesn't work, just reply back or open a new question.


And if all else fails, I found several ways to do it, both in AS2 and in AS3 in this Google result:
http://www.google.com/#q=embed+youtube+video+in+Flash

I believe there is also a set of classes that are made to interact with and gather YouTube videos into your Flash project, but for the life of me I cannot find it. :( I will reply back if I finally stumble across the library.

Cheers,
Andreas
Avatar of brainhax

ASKER

thanks alien109 and IgAndreas for your replies ,
i found a simple solution here
http://forums.adobe.com/message/1912905


and for using youtube stream in to another player , i saw JW player playing a youtube video ,
and  JW player also available in Flash :)




function containYoutube(youtubevar, depthLevel) {
this.createEmptyMovieClip("youtubecontainer",depthLevel);
this.youtubecontainer.loadMovie("http://www.youtube.com/v/"+youtubevar);
}

Open in new window