Hi, I have FMS2, Flash 8 and this client-side code: var client_nc:NetConnection; var out_ns:NetStream; var in_ns:NetStream; emisor_cam = Camera.get(); emisor_video.attachVideo(_root.emisor_cam); function doConnect() { client_nc = new NetConnection(); client_nc.onStatus = function(info) { trace("Level: " + info.level + " Code: " + info.code); } client_nc.connect("rtmp://loca lhost/videochat/" + _level0.sid); } function publishMe() { out_ns = new NetStream(_root.client_nc); out_ns.attachVideo(_root.emiso r_video); out_ns.publish(_level0.eid); } function playMe() { in_ns = new NetStream(_root.client_nc); receptor_video.attachVideo(in_ ns); in_ns.play(_level0.rid); } // Connect to the server doConnect(); // Publish the live stream publishMe(); // Play back the stream from the server playMe(); Modified from a sample. I run two web pages with this flash where _level0.sid is the room id, and _level0.eid and _level0.rid are crossed values. I see at FMS Admin that the two users connect to the same instance and that they publish and play the streams, but they can only view their published strem. They cannot view the in_ns stream. This worked fine with FCS. What's the matter?
And why this is not recording anything?: out_ns.publish(_level0.eid,"record"); It appears as Live Stream at Admin Console.
Ok, I found the stupid error out_ns.attachVideo(emisor_cam); Instead out_ns.attachVideo(emisor_video);
Don't see what you're looking for? Try a search.
|