4 Replies Latest reply on Apr 26, 2011 8:57 PM by Dhrupadh

    Unable to get started with RTMFP

    Dhrupadh Level 1

      Hi,

       

      I am just getting started with RTMFP for communicating between two instances of flash players.

       

      I tried this code:

       

      var x:NetConnection = new NetConnection();
      x.addEventListener(NetStatusEvent.NET_STATUS,handleStatus);
      x.connect("rtmfp://p2p.rtmfp.net/","MY_DEV_KEY");
      
      private function handleStatus(event:NetStatusEvent):void
      {
           Alert.show("fingerPrint is " + x.nearID);
      }
      

       

      But after the first three lines of code execute, I dont see any response.

       

      I tried running this code using both Flash Builder and FB plugin for Eclipse with flash player version 10.2.159.1 installed.

       

      I also tried running this app:

       

      http://flashrealtime.com/tuts/p2p-in-flash/p2p-flash-demo/

       

      But seems like it is not working either.

       

      Please help.

        • 1. Re: Unable to get started with RTMFP
          Michael Thornburgh Adobe Employee

          what results do you get if you go to

           

            http://cc.rtmfp.net/

          • 2. Re: Unable to get started with RTMFP
            nated Level 1

            try this instead:

             

            x.connect("rtmfp://p2p.rtmfp.net/"+"MY_DEV_KEY");

             

            That should get you going for starters I believe.

             

             

            Dhrupadh wrote:

             

            Hi,

             

            I am just getting started with RTMFP for communicating between two instances of flash players.

             

            I tried this code:

             

            var x:NetConnection = new NetConnection();
            x.addEventListener(NetStatusEvent.NET_STATUS,handleStatus);
            x.connect("rtmfp://p2p.rtmfp.net/","MY_DEV_KEY");
             
            private function handleStatus(event:NetStatusEvent):void
            {
                 Alert.show("fingerPrint is " + x.nearID);
            }
            

             

            But after the first three lines of code execute, I dont see any response.

             

            I tried running this code using both Flash Builder and FB plugin for Eclipse with flash player version 10.2.159.1 installed.

             

            I also tried running this app:

             

            http://flashrealtime.com/tuts/p2p-in-flash/p2p-flash-demo/

             

            But seems like it is not working either.

             

            Please help.

            • 3. Re: Unable to get started with RTMFP
              Michael Thornburgh Adobe Employee

              >> try this instead:

               

              x.connect("rtmfp://p2p.rtmfp.net/"+"MY_DEV_KEY");
              

               

              that won't make any difference.  and in fact the

               

                 x.connect("rtmfp://p2p.rtmfp.net", "MY_DEV_KEY");

               

              form is preferred now (see the announcement at the top of the forum).

               

              if cc.rtmfp.net works and gives a result, then you probably have a programming error.  if cc.rtmfp.net doesn't work (doesn't connect), then most likely you have a firewall that completely blocks UDP.

              1 person found this helpful
              • 4. Re: Unable to get started with RTMFP
                Dhrupadh Level 1

                Yes it was a firewall issue. When i go to the site http://cc.rtmfp.net/, I get a connecting... message that just appears to be connecting to eternity.

                 

                I tried using a private internet connection and it works fine.

                 

                Thanks for your help.