NetGroup NetConnection.NetGroup.Closed

74 views
Skip to first unread message

Victor Hugo

unread,
Jul 11, 2013, 11:29:01 PM7/11/13
to openrtmf...@googlegroups.com
Is there some problem with NetGroup ????

I'm using RTMFP Cumulus. I'm trying to create a NetGroup but I'm getting the
follow error "NetConnection.NetGroup.Closed" when I try to connect

you can see my code below.

Am I doing something wrong???

                nc = new NetConnection();
                nc.client = this;
                nc.addEventListener(NetStatusEvent.NET_STATUS, netConnectionHandler);
               
                nc.connect("rtmfp://localhost:1935/");

            private function netConnectionHandler(event:NetStatusEvent):void
            {                               
                switch (event.info.code)
                {
                    case "NetConnection.Connect.Success":
                        nearId = nc.nearID;
                       
                        var groupSpecifier:GroupSpecifier = new GroupSpecifier("group/up");                       
                        groupSpecifier.serverChannelEnabled = true;
                        groupSpecifier.multicastEnabled = true;
                        groupSpecifier.postingEnabled = true;
                       
                        var netGroup:NetGroup = new NetGroup(nc, groupSpecifier.groupspecWithoutAuthorizations());             
                        break;
                    case "NetGroup.Connect.Success":
                        outgoingStream = new NetStream(nc);
                        outgoingStream.publish(nearId);
                        outgoingStream.attachAudio(mic);
                        outgoingStream.attachCamera(webCam);
                        break;
                   
                    case "NetConnection.Connect.Closed":

                        break;
                   
                    case "NetStream.Connect.Success":                   
                        break;
                   
                    case "NetConnection.Connect.Failed":

                        break;
                }
            }




Reply all
Reply to author
Forward
0 new messages