To help a little bit more, here's some code:

------------

connection = new NetConnection();
connection.connect(red5path);

stream = new NetStream(connection);

mic = Microphone.get();
mic.setRate(44);

stream.attachAudio(mic);
stream.publish(recordedFilePath,"record");

TO STOP
stream.close();

TO PLAY BACK
stream.play(recordedFilePath);

-----------------

Just change variables with actual paths and names and that's pretty much it.

Cheers!

On 7/11/07, Zárate <[EMAIL PROTECTED]> wrote:
> It's already there, check out sample files bundled within Red5
> installation. The basic AS to record audio is actually fairly simple.
>
> Cheers!
>
> Juan
>
> On 7/11/07, Matt <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have installed Red5 and it is running on my Ubuntu Server as
> >
> > 1935/tcp open  rtmp
> >
> > It is freshly installed red5 (0.6.2-1) via .deb package. All went well.
> >
> > Now, I want to record AUDIO from a flash in any browser and save that on the
> > red5 server so i can then process it.
> >
> > Anyone have a small tutorial for this? Maybe a simple swf file and config 
> > file
> > I can place in a webpage and set up a MIC and do some streaming tests?
> >
> > Also, I am waiting for my ActionScript and Flash books in the mail... but 
> > any
> > help I just mentioned would be appreciated!!!!!
> >
> > regards,
> > matt
> >
> > _______________________________________________
> > osflash mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
>
>
> --
> Juan Delgado - Zárate
> http://zarate.tv
> http://dandolachapa.com
> http://loqueyosede.com
>


-- 
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.com

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to