Multicast Streaming in Flash Player 10.1 Tutorial
June 30th, 2010
Adobe Developer Connection presents:
Multicast Streaming in Flash Player 10.1
This video-tutorial shows how to build a simple Broadcaster/Receiver system with P2P Multicast in Flash Player 10.1 using NetStream and Camera classes.
Learn more: Read Multicast Explained in Flash Player 10.1
Where to go from here
Check other tutorials regarding P2P in Flash:
- File Sharing over P2P in Flash with Object Replication
- P2P GroupSpecifier Class Explained In Details Part 1
- Multicast Explained in Flash 10.1 P2P
- Directed Routing Explained in Flash 10.1 P2P
- Simple chat with P2P NetGroup in FP 10.1
Video tutorials:
- P2P Chat with NetGroup in Flash Player 10.1
- Multicast Streaming in Flash Player 10.1 Tutorial
Facebook comments:
18 Comments »
RSS feed for comments on this post. / TrackBack URL





[...] Developing Multicast Streaming in Flash Player 10.1 [...]
Pingback by Multicast Explained in Flash 10.1 P2P — FlashRealtime.com — July 1, 2010 @ 9:43 am
Tom, hi!
I’ve tried to use your example applicaation and I ‘m upset, because somthing is wrong. Outputs NetStream Error and links to setupStream function and also on line with code:stream.attachCamera(cam);but as it seems to me I just put your mxml files(Broadcaster and Receiver in new projects
with the same names as mxml files in FlashBuilder 4…and could’not solve thiis problem, may be you know ow to fix it
thanks!
Comment by Dima — July 17, 2010 @ 9:49 pm
[...] Video tutorials: – P2P Chat with NetGroup in Flash Player 10.1 – Multicast Streaming in Flash Player 10.1 Tutorial [...]
Pingback by Video-on-Demand over P2P in Flash Player 10.1 with Object Replication — FlashRealtime.com — July 28, 2010 @ 8:00 pm
[...] Multicast Streaming in Flash Player 10.1 Tutorial Possibly related posts: (automatically generated)Grading the Bill Categories: Flash Tags: Flash Player 10, p2p Comments (0) Trackbacks (0) Leave a comment Trackback [...]
Pingback by The next big thing: Adobe Flash P2P « Flash Video Technology and Optimizations — July 30, 2010 @ 8:06 pm
I have the same issue as Dima. It works on my local machine, but not when I upload it to the server.
Comment by Ziad — August 6, 2010 @ 7:10 pm
[...] me to help him solve a problem that was getting when testing Tom Krcha’s example files of his Multicast Streaming tutorial, the files he was using were the same included in Tom’s tutorial except for the Stratus [...]
Pingback by Multicast Streaming in Flash Player 10.1 revisited | .swfgeek — August 11, 2010 @ 3:01 am
I just posted the solution to the “Error #2154″ in my blog:
http://www.swfgeek.net/2010/08/10/multicast-streaming-in-flash-player-10-1-revisited/
Comment by Dave Gamez — August 11, 2010 @ 3:07 am
…tutorial has a problem, please fix it.
Comment by Dima — August 13, 2010 @ 5:46 pm
@Dima I posted a fix on my blog http://bit.ly/9zev6P
Comment by Dave Gamez — August 14, 2010 @ 4:30 am
Hi Tom,
great tutorial, quick question:
You transfer the video by using getCamera on the sending site and attachNetStream on a Video object on the receiving side. But what about audio?
I managed to get the audio input via Microphone.getMicrophone() and I am sending it over the same NetStream as the video. But how do I handle the audio on the receiving side?
Many thanks,
Stef
Comment by Moodsoup — August 18, 2010 @ 11:03 pm
I am one step closer to adding audio to the video chat as well.
You just have to capture the mic on the receiving side and attach it to the netstream.
On the receiving side, you just play the netstream, no further actions necessary.
There is one weird problem though:
If I set up a connection between a sending and a receiving side, there is no problem as long as I keep complete quiet. But the moment I make a sound, the flash player and/or browser on the receiving side crashes. I googled the problem and it has been replicated but I haven’t come across a solution yet. Any help?
Project is done in Flash CS5, compiled for player 10 and played in a browser with flash player 10.1. Crashes as well on Mac/safari as on PC/Explorer.
Weird…
Comment by Moodsoup — August 20, 2010 @ 12:12 am
Any idea on how can I stream a file(doc and video) instead live camera?
Comment by Cristian Rusu — October 19, 2010 @ 8:56 am
Do I need a server for these two scripts to work? I’m trying to stream video via Flash 10.1 in a P2P fashion.
When I run these files on my Eclipse Flex Compiler, I get NetConnection.Connect.Success but nothing after that.
Any help is appreciated.
Comment by Pete — December 23, 2010 @ 7:45 am
When you click Run P2P me an error:
unable to open ‘C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\player\10.1\playerglobal.swc’ P2P Unknown Flex Problem
Help me, what to do?!!!!
Comment by Snap — March 29, 2011 @ 3:41 pm
Hi I was to stream multicasting IP in side flash, please advise me proper solution. eg: 235.1.1.5
Comment by Muthukumar — July 11, 2011 @ 4:30 pm
MORTEL !
J’en ai cherché des solutions de diffusion à grande échelle, mais là, quelle claque, c’est exactement ce qu’il me fallait.
C’est très simple à mettre en œuvre, alors que le côté technique peut paraître complexe au premier abord.
Merci pour ce génial tutoriel, et bonne continuation.
Comment by Skah — August 15, 2011 @ 3:37 am
i am still putting my head arround this. i am developing apps with live video streaming, which as i am doing it know demands me to have N times de upload bandwith for N stream clients. Can this lower my server load by making the client a receiver and at same time publisher of that stream?
Comment by Pedro Branco — November 10, 2011 @ 5:12 pm
Hi,
i’ ve developed an application with streaming video following this tutorial: http://tv.adobe.com/watch/adc-presents/multicast-streaming-in-flash-pl ayer-101/
but when i try it in explorer or chrome doesn’t work. In firefox work correctly.
Can you help me ?
Thnaks a lot
Comment by lelexall — November 29, 2011 @ 4:34 pm