Red5 :: Flex2/AS3 Samples started

SimpleConnector

I’ve just started on some basic sample/reusable code for creating basic applications with Flex/as3 that use Red5. The first, is a Connection class along with a SimpleConnector.mxml to show how to use the Connection class.

SimpleConnector has a textfield for the URI, Red/Green light for connection status and a connect button. There are methods to get the NetConnection object to pass along for any netstreaming you’ll be doing. This zip includes the orignal FLVPlayer code that now uses the SimpleConnector.mxml and Connection class.

We’re still discussing where we’ll put the sample code for Red5, but for now, I’ll post updates here.

Red5Samples.zip

10 Responses to “Red5 :: Flex2/AS3 Samples started”

  1. 小小菜鸟 Says:

    perfect! very useful~

  2. Chris Clark Says:

    I can seem to get the video files to play… Do I have to set them in a spcial folder?

  3. John Grden Says:

    If you have Red5 installed, and you’re connecting to the oflaDemo application, then you should get a listing of the videos in the streams folder. Double check to make sure that there are FLV’s in the oflaDemo/streams folder. If they video’s are not playing, but you hear the audio, then you’ve not attached your netStream to the video object I’m guessing.

    Does that help?

  4. Patrick Says:

    This is great… Exactly what I’ve been looking for. A side note… are you going to have any examples of red5 “live” streaming application demos available in flex?

  5. John Grden Says:

    you could use this sample to subscribe to a broadcasted stream. All you’d have to do is provide the name of the broadcast instead of the FLV.
    :)

  6. Peter Witham Says:

    Thanks John, having only just started with Red5 (I know…I am ashamed to admit :P ) and AS3 this will really help me out.

  7. Marin Says:

    This is everything I need but I can’t use it :( When will you update it for FLEX 3?

  8. Trial and Error « Marc Hibbins Says:

    [...] There’s plenty of resources around to get started with, John Grden at RockOnFlash has some good samples. Milan Toth wrote a handy article from setting up your server environment through application development, to the final Flash client that proved useful, but there were a few frustrating not-so-well documented issues I repeatedly came across. [...]

  9. Josh Chesarek Says:

    Hi John,

    I am using the latest Red 5 Version v0.8.0 Release Candidate 1

    as well as trying with v0.7.0 Final

    I can get the included demo apps to connect and play but I cannot get your app to connect. I uploaded the FLVPlayer.swf to my demos directory and went to it in my browser. Once i have the URL in I hit connect but the light does not go green. I hit Shift + L but when clicking the buttons nothing happens. I have a feeling I need to be doing more to get this to work but I am not sure what.


Leave a Reply