| By Renaun Erickson | Article Rating: |
|
| December 1, 2006 04:00 AM EST | Reads: |
55,020 |
The video conference view is now ready to be created. The video conference view consists of a panel, tile, and repeater control. The repeater, with dgUsers as the data provider, will create a custom VideoPod control for each user. Although the video component is custom, the guts are quite simple. You will find the full source of the VideoPod in Listing 3. The idea is to first check if the user is a sender or receiver. If it's a sender, you attach the camera and microphone to the Net Stream object and publish it to the server.
public function init():void
{
ns = new NetStream( nc );
...
camera = Camera.getCamera();
...
ns.attachCamera( camera );
microphone = Microphone.getMicrophone();
ns.attachAudio( microphone );
ns.publish( userItem.identifier )
}
When the custom VideoPod is to display the receiving video feeds, the component creates a stream and calls the play method.
video.attachNetStream( ns );
ns.play( userItem.identifier );
The video class in Flex 2 is used to display video streams. A simple VideoContainer class is found in Listing 4 and is used in the VideoPod component to make it easier to add any video object as a UIComponent. This is needed because the video class is not a UIComponent, so it can't be added as a child to the panel class directly. The VideoPod now is ready to be put into the video conference view control using the repeater inside a tile control.
<!-- Video Panel -->
<mx:Panel id="pnlVideo"
width="100%" height="100%"
title="Welcome { txtName.text }!"
layout="vertical">
<mx:Tile height="100%" width="100%">
<mx:Repeater id="rpUsers"
dataProvider="{ dpUsers }">
<VideoPod
nc="{ nc }"
isSender="{ rpUsers.currentItem.name == txtName.text }"
userItem="{ rpUsers.currentItem }" />
</mx:Repeater>
</mx:Tile>
</mx:Panel>
Now, you can put it all together, compile it, and try it out for yourself. The application's structure consists of the main mxml application called FlexVideoMain.mxml (see Listing 2), VideoPod.mxml (see Listing 3), and VideoContainer.as (see Listing 4). Complementing the client application the FMS server application requires main.asc (see Listing 1) to be placed in flex_videoconference folder in the applications area. The application provides a simple one room multi-user video conference solution. Of course, the maximum number of users possible in each video conference will depend on bandwidth. There are other considerations in creating live, media-rich applications like latency, quality of the video, and frame rates (which affects perceived latency).
Published December 1, 2006 Reads 55,020
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Renaun Erickson
Renaun Erickson is a RIA developer specializing in Flex, ColdFusion, and PHP, and he is a Flex Adobe Community Expert. He is active in the community through http://renaun.com/blog/, as well as the local Las Vegas Adobe User Group http://vegasaug.org.
![]() |
linden.hocking@blakedawson.com 12/02/08 07:35:49 PM EST | |||
Hi Renaun This provides a fantastic plugin that I'm using in a Confluence wiki. Is there anyway to modify the quality of the video? Thanks |
||||
![]() |
steve M 08/27/07 01:54:08 AM EDT | |||
That's really a smart and quick sloution for video conferencing, without much efforts and time. |
||||
- Open Source Java Guru Moving to Joost
- Ulitzer Live! New Media Power Panel at Santa Clara Convention Center
- Bernanke Should Go Back to Teaching
- New Virus Targets Facebook, MySpace and Twitter Users
- Warner Music Group Appoints Renowned Producer Rob Cavallo as Chief Creative Officer
- ITRI's FleXpeaker, an Innovative, Paper-Thin Speaker Technology, Receives 2009 Wall Street Journal Technology Innovation Award
- Get HD Videos to FLV with Fancy Player for Online Sharing
- Apple Store Upper West Side Opening on Saturday, November 14
- Alfred Poor’s New Video Reviews
- iPhone Tips, Tricks & Apps for Business Executives
- LTE - The Rise of the Mobile Prosumer
- Now that's a Da Vinci!
- Open Source Java Guru Moving to Joost
- Apple Introduces New iPod nano With Built-in Video Camera
- Ulitzer Live! New Media Power Panel at Santa Clara Convention Center
- MTV Video Music Award-Winning Green Day To Host Special Music Countdown on SIRIUS XM Radio
- Apple Approves First Official Porn Star App for iPhone
- Bernanke Should Go Back to Teaching
- Pixamba CEO Launches Stock Photography Topic on Ulitzer
- Turn Your Podcast Into an Interactive Live Streaming Experience
- New Virus Targets Facebook, MySpace and Twitter Users
- Sybase and Verizon Team up to Manage Mobility Solutions For Enterprises Worldwide
- LA Phil Launches Microsite Celebrating Incoming Music Director
- Google Sites Exceed 10 Billion Video Views in August
- Video Conference with Flex & FMS
- The Top 250 Players in the Cloud Computing Ecosystem
- AJAX and Enterprise RIA Tools - JSF, Flex, and JavaFX
- SYS-CON Events Announces iTVcon Internet TV Conference & Expo 2007
- iTVCon - Internet Video Conference & Expo Registrations Now Open
- Internet Video Update: First "Webisode" of Quarterlife Will Air on MySpaceTV
- Microsoft's Flash-Killer Silverlight Streaming Video Plug-in Released
- "TV Anywhere, Anytime" Gets a Boost...From Joost
- Android: Who Hates Google Over the Phone?
- From Enterprise to Cloud, Virtualization Today on SYS-CON.TV
- iTVCon - Starts Next Monday! Check Out the Full Speaker Lineup
- Virtualization: "The Leading Technology of the 21st Century"








































