DISQUS

*drawlogic: AS3 YouTube Chromeless Player in Flash/Flex

  • zproxy · 1 year ago
    What about a version without javascript at all? For example what if the only media is the swf file and you cannot use ExternalInterface.

    Can you play youtube just with flash?
  • drawk · 1 year ago
    Yeh this library lets you play youtube with just flash without the controls, and with javascript. Either way you can choose.
  • Bobby · 1 year ago
    I don't understand your answer ;)
    Is it possible to play with only an .swf, and no specialized youtube-javascript at all. I.e., is it possible to play from inside flash without external interface? 1
  • LaurenÅ£iu Lozan · 1 year ago
    Been experiencing a very strange problem for a couple of days.
    When loading the YouTubeLoader and an FLVPlayback (or VideoPlayer) in the same project, it works one time out of ten.
    In Debug mode (where the youtubeLoader doesn't work, obviously) the runtime error does not occur), while in Run mode the FLVPlayback/VideoPlayer refuses to play anything after the Youtube player has played smth. and throws the following error:

    ArgumentError: Error #2126: NetConnection object must be connected.
    at flash.net::NetStream/construct()
    at flash.net::NetStream()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_createStream()[...\fl\video\VideoPlayer.as:3980]
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load()[...\fl\video\VideoPlayer.as:1215]
    at fl.video::VideoPlayer/play()[...\fl\video\VideoPlayer.as:971]

    I can't even start it by overring the NetConnection that's used in the VideoPlayer load method. I declare a new NC... connect it to null (for http streaming) and still the same error.
    Probably a Flash Player problem with the NetConnection. :(
  • syed shams · 1 year ago
    i have no words for this EXCELLENT
  • Paul · 11 months ago
    The only problem I have it doesn't work. I tried my best and spent do days to make it work but it didn't :( Can you provide more examples? That I just can open in my Flex Builder and see that the library works?
  • kevin herrod · 9 months ago
    all i want to do is display a youtube video on a flash as3 website that I am creating. Nothing fancy, just make it 50% size and position in lower right corner and play when clicked. Can I do that with AS3 or do I have to back to AS2 for that????
  • ChadAndrewDrobish · 7 months ago
    So, I would like to use this API- but there are few things that is holding me back.

    I understand youtubes securities, but it would be great to get data like formats - (HQ, HD, etc) as well as flv meta data (which can be acquired from a NetStreams.client obj in As3) Any thoughts if it would be possible to obtain that through the API? Been looking through all the APIs out there for the last week - nothing yet except getting a token and pulling the flv directly.

    Thanks
    ChadAndrewDrobish
  • felix_turner · 2 months ago
    I posted a demo loading multiple instances of the new YouTube chromeless player and displaying them with Flash 10 native 3D : http://www.airtightinteractive.com/news/?p=379