Using the open source Flex SDK developers can easily build desktop, mobile, and tablet applications which utilize Peer to Peer (P2P) communication. I’ve created a video that walks through demos and code illustrating how to use the P2P APIs in Adobe AIR applications. Check it out:
Grab the code for the demos in the video from github:
Just as the video shows, it’s incredibly easy to use the P2P APIs. Here is a quick walk through. First create a new NetConnection that is connected to “rtmfp:” like so:
localNc = new NetConnection(); localNc.addEventListener(NetStatusEvent.NET_STATUS, netStatus); localNc.connect("rtmfp:");
In the netStatus event listener wait for the “NetConnection.Connect.Success” event and then setup the NetGroup [...]
No comments:
Post a Comment