1 Reply Latest reply on Nov 25, 2010 1:48 PM by Michael Thornburgh

    P2P data streaming using Flex/Flash without Cirrus/Stratus or Flash Server

    jwomers88

      Hi

       

      I am very new to Flash/Flex and was wondering if there was a way to stream data (like video or audio) between two flash clients (in a browser say) without using an Adobe Flash server, or without using cirrus or stratus. My server would monitor and have the IP's of the clients so it would tell the clients to open sockets straight to each other.

       

      I see NetStream can only be connected between a client and a Flash server so that doesn't help.

       

      Thanks for the help,

       

      Justin

        • 1. Re: P2P data streaming using Flex/Flash without Cirrus/Stratus or Flash Server
          Michael Thornburgh Adobe Employee

          you can't specify an IP address/UDP port of a peer, only of a server.  you can only reference peers by peerID, and you can only get connected to a peer by having a server/service (such as FMS or Cirrus) facilitate the connection.

           

          RTMFP Groups can be used without a server, but only on a LAN.  check the NetConnection.connect() ActionScript docs in the netConnection.connect("rtmfp:") case.  a NetConnection in this mode (we call it "serverless mode") can only be used for NetGroup and group NetStream (that is, P2P and IP multicast) operations.  and you must find peers using IP multicast (by setting GroupSpecifier.ipMulticastMemberUpdatesEnabled=true and adding an IP multicast address to the group specification).  a NetConnection in this mode can't be used with the 1:1 NetStream APIs.