Local Flash Peer-to-Peer Communication over LAN (without Cirrus/Stratus)
August 27th, 2010
Some of you guys were probably wondering how to establish P2P connections in the local network (LAN) without Adobe Cirrus. Yes. It’s possible. Using native IP-only multicast. Let’s build a simple chat with Posting. Adding Multicast broadcast is just a simple next step which I am sure you can accomplish by yourself with few hints from my article about Multicast
Open an IP Multicast connection. This can be done by specifying connection string as “rtmpf:”. Note, that this technique cannot be used for one-to-one communication. So no DIRECT_CONNECTIONS with NetStream, but you can do all RTMFP Group operations.
netConnection.connect("rtmfp:");
AS3-P2P-LIB and P2P Video Calls on Android
July 22nd, 2010
I am very happy that the community is getting more and more involved in P2P. I told you, it has endless possibilities!
AS3-P2P-LIB
AS3-P2P-LIB is a pure ActionScript 3.0 Library by Dominic Graefen that helps Flash developers get started with P2P easily.
All Classes | Example | Project page at GitHub
P2P Video Calls on Android
My fellow evangelist Mark Doherty built a great demo app using P2P and AIR 2.5 for Android. Watch this video, where he shows how it works. And btw: I should really teach him how to pronounce my name Mark, you are going to get a lesson at MAX 2010!
Check Mark’s blog post for further information.
File Sharing over P2P in Flash Player 10.1 with Object Replication
July 14th, 2010
Read also: Video-on-Demand over P2P in Flash Player 10.1 with Object Replication
Object Replication
Object Replication is the most lowest-level P2P access available in Flash Player 10.1 (followed by Multicast, Posting and Directed Routing). It basically enables you to send chunks of data between peers. Object Replication is the only P2P access method that guarantees that all data will be transferred to all receiving peers.
Demo
I’ve built this simple file sharing application, which basically loads a file and then you start sharing it. Open another client to start receiving the file.
Read the rest of this entry »
P2P Chat with NetGroup in Flash Player 10.1
July 8th, 2010
This videotutorial is a follow-up of my tutorial Simple chat with P2P NetGroup in FP 10.1.
Peer-to-peer chat with NetGroup in Flash Player 10.1 (ADC video link)
Multicast Explained in Flash 10.1 P2P
July 1st, 2010
Multicast is one of the features of Flash Player 10.1 and it enables you to distribute NetStreams across the peer-to-peer mesh. It can be audio, video or even pure data stream (AMF3) - the data stream can be very handy for games, it’s much better for such purpose (like sending realtime positions, directions) than using Posting as Posting is more optimized for large number of senders to send something - like chat, status change and so on.
Difference between Unicast and Multicast
Unicast
Unicast simply delivers streams from a server to n clients. For this purpose you can use Flash Media Server and TCP protocols such as RTMP/T/S/E or HTTP protocol. Unicast also costs you a lot of resources -> 1 MBps stream delivered to 1000 clients means 1 GB upstream from server - which is CPU demanding and network transit is also huge.