[Red5] Recording live video
John Grden
neoriley at gmail.com
Mon Feb 12 12:42:10 EST 2007
Right that's cool, that's why I made the new samples in the "Samples" folder
- all code is in the FLA in first frame. You should be able to compile the
FLA without any other classes
On 2/12/07, sir buce <sirbuce at gmail.com> wrote:
>
> Thank you for your answer John, but I'm not a AS developer... and I'm not
> understand AS with OOP, for that reason I need a simple sample to make my
> SWF.
>
> Thank you.
>
> 2007/2/12, John Grden < neoriley at gmail.com>:
> >
> > Try using the samples directory where I've put together much more direct
> > and basic samples that do the same excercise. I'm going to be removing
> > those classes and cleaning all of that up as we move forward.
> >
> > On 2/12/07, sir buce < sirbuce at gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I try to make a new SWF to record live streaming video using a Red5
> > > classes.
> > > I've a little problem.. ;) I'm not sure how can make a connection to
> > > red5 services with class Connector.
> > >
> > > I have take for example to make my fla file the Main.as:
> > > org.red5.samples.livestream.recorder.Main
> > >
> > > I think I need something like this:
> > >
> > > connector.conect();
> > >
> > > Somebody can help me, thank you.
> > >
> > > My code is:
> > >
> > > import org.red5.utils.Connector;
> > > import com.neoarchaic.ui.Tooltip;
> > > import org.red5.net.Stream;
> > > import org.red5.utils.Delegate;
> > > import com.blitzagency.xray.util.XrayLoader;
> > >
> > > var recordingStream:Stream;
> > > var playingStream:Stream;
> > > var recording:Boolean;
> > > var playing:Boolean;
> > > var cam:Camera;
> > > var mic:Microphone;
> > > var currentTimer:Number;
> > >
> > > var connector:Connector;
> > > var publish_video:Video;
> > >
> > > XrayLoader.loadConnector("xray.swf ");
> > > _root.onLoad = function() {
> > > cam = Camera.get();
> > > cam.setMode(320, 240, 30);
> > > cam.setQuality(0, 0);
> > >
> > > mic = Microphone.get();
> > > mic.setRate(44);
> > >
> > > Connector.red5URI = "rtmp://localhost/fitcDemo";
> > > connector.configUI();
> > > };
> > >
> > > btnRecord.onRelease = function() {
> > > if (!connector.connection.isConnected || recording) {
> > > return;
> > > }
> > > recording = true;
> > > // setup stream
> > > currentTimer = getTimer();
> > > recordingStream.publish("red5RecordDemo"+currentTimer, "record");
> > > recordingStream.attachVideo(cam);
> > > recordingStream.attachAudio(mic);
> > > publish_video.attachVideo(cam);
> > > }
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> >
> >
> > --
> > [ JPG ]
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070212/a2f2ecd3/attachment-0001.htm
More information about the Red5
mailing list