[osflash] Received result {level=error, code=NetConnection.Call.Failed} for set Id
John Grden
neoriley at gmail.com
Wed May 2 11:50:34 EDT 2007
Yes, that's normal. That's just a simple app written for a particular
purpose. If you want to simply record video/audio, connect to the
messageRecorder application and you won't have to deal with any ID's ;)
also, you might want to put this discussion over on the Red5 email list -
there will likely be more answers from folks over there and this is a little
OT for the OS list.
Thanks Damien!
John
On 5/2/07, Damien Cayzac <dam2aiup at gmail.com> wrote:
>
> It's ok, i have in my log file : Received result true for setId.
>
> But i have an other problem.
>
> When i launch my Flash application, in my log file the client connected
> increase (Client joined app 8). I think, if i close my flash application,
> the number of client connected must restart (Client joined app 0) but i have
> the previous number + 1 (Client joined app 9). If i restart red5 this number
> = 0 (Client joined app 0). It's normal ?
>
> Sorry for my english
>
>
>
> 2007/5/2, John Grden <neoriley at gmail.com>:
> >
> > ah,
> >
> > function setId(id:Number):Boolean
> > {
> > trace(id);
> > return true;
> > }
> >
> > On 5/2/07, Damien Cayzac < dam2aiup at gmail.com> wrote:
> >
> > > Thanks for your answer. It's ok now but i have this in my log file :
> > >
> > > [java] [INFO] 15375 pool-3-thread-3:(
> > > org.red5.demos.fitc.Application.appCo
> > > nnect ) Client connected 0 conn RTMPMinaConnection from 127.0.0.1:3090to localh
> > > ost (in: 3340, out: 3073)
> > > [java] [INFO] 15375 pool-3-thread-3:(
> > > org.red5.demos.fitc.Application.appCo
> > > nnect ) Setting stream id: 0
> > > [java] [INFO] 15375 pool-3-thread-3:(
> > > org.red5.demos.fitc.Application.appJo
> > > in ) Client joined app 0
> > > [java] [INFO] 15500 pool-3-thread-5:(
> > > org.red5.demos.fitc.Application.resul
> > > tReceived ) Received result null for setId
> > >
> > > My code :
> > >
> > > import mx.utils.Delegate;
> > >
> > >
> > > record_nc = new NetConnection();
> > > record_nc.connect("rtmp://localhost/fitcDemo");
> > >
> > > record_nc.setId = Delegate.create(this, handleSetId);
> > >
> > > function handleSetId(id:Number):Void
> > > {
> > > trace("received ID: " + id);
> > > }
> > >
> > > //Status de la connection
> > > record_nc.onStatus = function(info) {
> > > trace("Level record: "+info.level+" Code: "+info.code);
> > >
> > > if(info.code == "NetConnection.Connect.Success"){
> > >
> > > //Création du stream pour l'enregistrement
> > > record_ns = new NetStream(record_nc);
> > > record_ns.attachAudio(mic);
> > > record_ns.attachVideo(cam);
> > >
> > > // Record the stream
> > > record_ns.publish("videoname", "record");
> > >
> > >
> > > //Status du stream record
> > > record_ns.onStatus = function(info){
> > > trace(info.code);
> > >
> > > }
> > > }
> > > }
> > >
> > > trace :
> > >
> > > received ID: 0
> > > Level record: status Code: NetConnection.Connect.Success
> > > NetStream.Publish.Start
> > > NetStream.Record.Start
> > >
> > >
> > >
> > > 2007/5/2, Damien Cayzac < dam2aiup at gmail.com>:
> > > >
> > > > I have an error when i connect my application to the fitcDemo app. I
> > > > want to record flv.
> > > >
> > > > My code is :
> > > >
> > > > record_nc = new NetConnection();
> > > > record_nc.connect("rtmp://localhost/fitcDemo");
> > > >
> > > > //Status de la connection
> > > > record_nc.onStatus = function(info) {
> > > > trace("Level record: "+info.level+" Code: "+info.code);
> > > >
> > > > if(info.code == "NetConnection.Connect.Success "){
> > > >
> > > > //Create stream for record
> > > > record_ns = new NetStream(record_nc);
> > > > record_ns.attachAudio(mic);
> > > > record_ns.attachVideo(cam);
> > > >
> > > > // Record the stream
> > > > record_ns.publish("videoname", "record");
> > > > //Status du stream record
> > > > record_ns.onStatus = function(info){
> > > > trace(info.code);
> > > > }
> > > > }
> > > > }
> > > >
> > > > The video flv was created in a folder "streams" but i have an error
> > > > in my log file :
> > > >
> > > > Received result {level=error, code=NetConnection.Call.Failed} for
> > > > set Id.
> > > >
> > > > Sorry for my english !
> > > >
> > > >
> > >
> > > _______________________________________________
> > > osflash mailing list
> > > osflash at osflash.org
> > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > >
> > >
> >
> >
> > --
> > [ JPG ]
> > _______________________________________________
> > osflash mailing list
> > osflash at osflash.org
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070502/2ca94d12/attachment-0001.htm
More information about the osflash
mailing list