[osflash] Received result {level=error, code=NetConnection.Call.Failed} for set Id
Damien Cayzac
dam2aiup at gmail.com
Wed May 2 09:23:59 EDT 2007
I have the same error. Where I put this code ?
2007/5/2, John Grden <neoriley at gmail.com>:
>
> It's telling you that you don't have a method called setId on the client
> side of things:
>
> // the java call
> service.invoke("setId", new Object[] { conn.getClient().getId() }, this);
>
> so, create that method like so:
>
> //AS2
> import mx.utils.Delegate;
> record_nc.setId = Delegate.create(this, handleSetId);
>
> function handleSetId(id:Number):Void
> {
> trace("received ID: " + id);
> }
>
> that should work
>
> hth,
>
> On 5/2/07, Damien Cayzac <dam2aiup at gmail.com> wrote:
>
> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070502/eb333733/attachment.htm
More information about the osflash
mailing list