Hi there!
The reason is:
rtmp://localhost/ - this is how you se you computer.
As for the others in local network be sure to change connection string to
you local ip address.
Must be something like 192.168.0.XXX
Or whatever. Depends on your network conf.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 9:08 PM
To: Flashcoders mailing list
Subject: [Flashcoders] NetConnection Fail Error

Any idea why?

I'm trying to publish a live video on my local network...
Locally on my pc works fine, feed and player, but when i go lo local 
host feed still working but no one can see the cam.

here is my code:

feed:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/videoApp");

var ns:NetStream = new NetStream(nc);
ns.attachVideo(Camera.get());

vid.attachVideo(Camera.get());

ns.publish("chrisCam", "live");



player:

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/videoApp");

var ns:NetStream = new NetStream(nc);

vid.attachVideo(ns);

ns.play("chrisCam");
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to