Video Conference with Flex & FMS, Live Demo and Source Code
October 28th, 2006
I wrote an article called “Video Conference with Flex & FMS” for the latest issue of Web Developer’s & Designer’s Journal (Volume 4 Issue 10). This article was available in the printed version of the WDDJ during MAX at the ColdFusion Developer’s Journal booth. I am not sure when the article will be available on sys-con.com’s website.
The article walks you through how to create a video conference application using Flex and Flash Media Server (FMS). I have gone ahead and posted a live working example of the code on my site as well as the source code.
Entry Filed under: Adobe Flex, Flash Media Server/Flash Video, Rich Internet Applications




30 Comments Add your own
1. Jay | 2006-10-30 at 6.11 pm
Hey great demo app although I was surprise to find out that even after i Log out of it I still had my camera activity led turned on, so maybe it was still using it. Hope this doesnt mean being logged out still uses up your bandwidth.
2. Renaun Erickson | 2006-10-30 at 6.14 pm
I have been monitoring the admin and haven’t seen any rogue streams, it should be good. Thanks for the heads up.
3. Chris | 2006-12-17 at 5.38 pm
I really like that app very much. I hate to ask, but could you please consider posting a step by step for how to import the files into Flex? Yes, I am a total Noob - I can make FMS work, but I am having a terrible time with Flex2.
I would really like to start learning with your project.
Thanks.
4. Renaun Erickson | 2006-12-17 at 5.42 pm
Short answer til I have more time is to look at these links:
http://livedocs.macromedia.com/flex/2/docs/Part6_Using_FB.html#72388
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
5. porbista | 2007-03-21 at 1.34 pm
Hi,
Great article!!!
I tried it but unfortunately i wasnt able to get it to work.. All it did was show me an empty pane after typing in my name and clicking submit.
Could you give me an idea what may be wrong?
Tnx a bunch!!!
6. Renaun Erickson | 2007-03-21 at 1.34 pm
do you have a WebCam?
7. Matti Kiviharju | 2007-04-26 at 9.45 am
Why you demo did not work some time ago?
I got error that told there is too much users on line at same time..
Do you know is there Flex 2 video confrence Red5 version anywhere at internet with BSD or MIT license..
8. sebastian | 2007-05-23 at 9.21 pm
Hi,
Thank you very much for this very helpful source-code. Really useful.
Just one question:
I realized that the video-conferencing requires a ridiculous amount of CPU-ressources (up to 60% total CPU with my new macbook pro). I tested it on other computers with different webcams, the same.
I found out, that it’s not the video, but adding Microphone/Sound support is eating a whopping 60% of my CPU!!
Does anybody has an idea on how to fix this?
thanks
9. Dax | 2007-06-07 at 5.19 am
great job, thanks for sharing sources
Dax.
10. Syed Hussain | 2007-08-06 at 3.23 am
Hi. Not able to execute the demo. Please let me know what to enter into the Name: text box.
Thanks.
11. Renaun Erickson | 2007-08-10 at 11.45 am
You need a web camera plug in to try it.
12. Dean | 2007-09-04 at 9.40 am
Is your demo still working? When I go to it and enter my name, and select “Submit,” I get absolutely nothing. I have a camera and it’s working.
13. Renaun Erickson | 2007-09-05 at 5.09 am
It is not working at this time.
14. Arun | 2007-10-06 at 11.23 am
Hi,
Great demo.
// 2k bytes (or ~16kbps) of bandwidthcamera.setQuality( 16384 / 4, 0 );
Is it a 4 k bytes data transfer?
I have two different reports in my Admin Console( in View Applications-> Clients and Manage Server -> Connections)
15. GMan — Adobe, Web v&hellip | 2007-10-17 at 4.23 am
[...] Flex Video Conference [...]
16. Rahul J | 2007-11-07 at 10.09 am
Hi Renaun,
It’s a great demo with source helpful very helpful for me. I am a newbie to Flex communication. I was trying to run the demo against my local Red5 server instead of FMS, but could not make it work.
Any suggestion?
Thanks,
Rahul
17. Chris M | 2007-12-02 at 12.17 am
Hi Renaun,
I am new to Flex & FMS. I have a Windows 2003 server with iis6. How can I get the Video Conference with Flex & FMS to work on that server? I have FMS installed and configured but I can’t get your application to work. What am I missing?
Thanks,
Chris
18. jeanphilippe | 2007-12-05 at 12.21 pm
Hi,
Thanks for sharing Renaun :)
I’m trying to put your flex chat in your Video Conference (in the same appli).
But i’ve a lot of problems with that.
have you sources about Video and Chat with People list in the same appli ?
Thanks a lot
JP
19. magicianzrh | 2008-01-04 at 4.58 am
Hi,
Thanks for your work.
But I can’t view the resource in “view” Button
I imitate your RemoteObjectAMF0 to write RemoteObjectFMS in http://www.actionscript3.cn/magicianzrh/archives/2008/01/remoteobjectfms-packagecairngo.html
For I can’t find your flex&fms resoure,so i don’t know how you do it,as as3 project or in cairngorm
If you have some time,sent me an email
20. Video Conferencing with F&hellip | 2008-03-07 at 9.34 am
[...] Video Conference with Flex & FMS, Live Demo and Source Code [...]
21. Santanu | 2008-05-21 at 5.15 am
Hi, I just tried to install the project in my Flex, and got a lots of ‘Access of undefined property Logger’ error! How could i overcome this problem..?
22. Renaun Erickson | 2008-05-21 at 9.10 am
Grab the renaun_com_Logger.swc off this site or delete all the Logger statements.
23. Santanu | 2008-05-21 at 10.13 pm
Hi, I’ve installed the project, copied the main.asc file to my FMS3 Application directory, starts the server, and everytime the running application returns me an error after Name submission - “The number of users has been limited for this demo, please try again in a few minutes. ” .. it seems couldnt able to connect to the server! What I’m missing!?
24. crush | 2008-07-26 at 6.43 am
Hi Renaun,
I have some strange problem with your program. Everytime a third user is trying to connect, a
NetStream.Publish.BadNameoccurs. In the Adminstration Console a weird stream called “false” is apparent.I’m using FMS3 and Flex3.
Do you have any ideas how to solve this issue?
Regards,
crush
25. lakshmikanth | 2008-07-30 at 2.24 am
first of all thanks a lot for u r source code Renaun, here i have a doubt , presently we are doing video conferencing in live mode , but if i want to save the videos ie., if i publish in “record” mode then it is giving me error if i record .
what i mean is i want to do the videoconferencing in “recording” mode , ie ., i want to save all the videos that are published .
if possible provide with the source code , thank u .
26. lakshmikanth | 2008-08-01 at 1.47 am
hi renanun ,
thanks for u r gr8 application , but here i have a query which is as follows :
in your applicatoin ie., videoconferencing if i publish in the “record” mode then for the other person it is giving me error as “NetStream.RecordNoAcess” , why this error is coming how can we overcome this error , if we put in “record ” mode ie., we are storing all the records of the person who have logged in , is this possible with one “netConnection” and one “netStream” object.
i want to record all the videos of the people who have logged in .
27. Will | 2009-03-12 at 6.58 pm
The example works great with my webcam! And the source code is very clean.
However, when I compile and run the code myself (using flex 3 sdk - flashDevelop), I can’t get it to play my video. I don’t even get a video square. However, I do see that I get a response of “success” back when I trace the netStatusHandler function and try to connect to my own server.
Also…
1.When I substituted my own address where you have your rmtp:/ address (why only one slash instead of rtmp:// ?), Don’t I need to supply a username/password or something in order to publish to my own server? Where do I do this?
2. Do I have to do anything else besides connect to my own rmtp address?
Thanks!
28. Renaun Erickson | 2009-03-12 at 7.06 pm
The one slash tells it to look relative to the domain of the SWF, if you give it two slashes it will take the url as absolute.
Not sure on the video not playing, make sure you have the write camera etc.. by going to context menu click on settings then the Camera tab. Select the right camera from the drop down then click on the white box to preview. That will at least tell you that Flash Player can recognize your camera and preview what it is seeing.
29. Will | 2009-03-12 at 7.25 pm
Thanks for the fast response. Just one more question that I asked above. Doesn’t there need to be a place where I put a password or login info? Otherwise, as long as someone knew the URL of a streaming server, couldn’t anyone just stream their camera to it? Know what I mean?
For example, this code you gave me has your own personal server URL…? A client of my has an flvhosting that I’m using to test.
30. Renaun Erickson | 2009-03-12 at 7.34 pm
You can do a password user name in your Flash Media Server side code and reject invalid authentication. More typically the first thing to stop people is to lock the server application down to a specific url so only SWF’s from a specific url can connect to the, this is done on the server side in the config files.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed