4 Replies Latest reply on Mar 17, 2010 10:06 PM by Michael Thornburgh

    TURN Proxy

    satheeshpallath12

      THis is the code...

      Check any error  in the declaration of TURN Proxy.I got error in flex-SDK description.xml.Plz can u give the code that we have to mention in xml file.when i tried to open the flex SDK description file,Blue Screen appears..PLZ give me a solution.If I enable UDP,what is the Scope of Security?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="connect()">
      <mx:Script>
          <![CDATA[
         
      import flash.events.NetStatusEvent;
      import flash.net.NetConnection;
      import flash.net.NetStream;

       

      import mx.controls.Alert;

       

      RTMFPTURNProxy = http://www.teknision.com/services/proxy/proxy.php;
      private const StratusAddress:String = "rtmfp://stratus.adobe.com";

       

      private const DeveloperKey:String = "Developer Key";
      private var nc:NetConnection;
      private var sendStream:NetStream;
      private var recvStream:NetStream;
      private var txt:String;

       

      [Bindable]
      private var nearID:String;
      private function connect():void
      {
      nc = new NetConnection();
      nc.addEventListener(NetStatusEvent.NET_STATUS,netConnectionHandler);
      nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncErr)
      nc.connect(StratusAddress + DeveloperKey);
      }

       

      private function netConnectionHandler(event:NetStatusEvent):void
      {
          Alert.show("1");
          trace(event.info.code);
                     t1.text = event.info.code;
                     if(event.info.code=="NetConnection.Connect.Success")
                     {
                             t2.text = nc.nearID;
                        
                     }

       

      }
      private function asyncErr(event:AsyncErrorEvent):void
                  {
            
                 }

      </mx:Script>

       

          <mx:TextArea x="106" y="63" height="25" width="500" id="t1"/>
          <mx:Text x="80" y="63" text="Text" id="text1"/>
          <mx:TextArea x="97" y="89" width="116" height="30" id="t2"/>
          <mx:Text x="80" y="90" text="ID"/>
          <!--<mx:Button x="148" y="159" label="SEND" click="sendStream()"/>-->
      </mx:Application>

       

      ERROR:-


      Flex 3.2: Error occurred while reading flex-sdk-description.xml.        p2p    Unknown    1266646211433    2