YOUR FEEDBACK
Craig Balding wrote: Bruce I read your comment and couldn't quite understand how it related to the p...
SYS-CON.TV

2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts

MXDJ TOP LINKS YOU MUST CLICK ON !


Video Conference with Flex & FMS
Learn how to use Flex 2 and FMS 2 by creating a basic video conference application

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).

About 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.

YOUR FEEDBACK
Brennan wrote: It is iPhone 3G, NOT G3. Get it right, it's the fucking news.
iPhone News Desk wrote: Apple telling the press that the state of its CEO's health is a 'private matter' was like waving a red cape in front of a bull. Within hours Fortune and the New York Times were reporting that the 53-year-old cancer survivor probably wasn't dying - as everyone had surmised by his emaciated appearance at the iPhone G3 introduction last month.
INTERNET TV LATEST STORIES . . .
Red Hat CTO Brian Stevens, Citrix CTO Simon Crosby, Egenera CTO Pete Manca, Allen Stewart, Group Manager, Windows Virtualization at Microsoft, and Brian Duckering, Sr. Director of Products and Alliances at Symantec were the top industry executives who joined Jeremy Geelan in the 4th Fl...
Google and its little pal YouTube have attracted another lawsuit for copyright infringement. Rome-based Mediaset, controlled by Italian Prime Minister Silvio Berlusconi, is demanding 500 million euros ($779.3 million) in damages. Mediaset sampled YouTube’s content on June 10 and says...
The New York Times quoted anonymous aides as saying they had urged McCain and lobbyist Vicki Iseman to stay away from each other prior to his failed presidential campaign in 2000. In its own follow-up story, The Washington Post quoted longtime aide John Weaver, who split with McCain la...
Having peered into various crystal balls, Cisco figures global Internet traffic will grow 46% a year between now and 2012, nearly doubling every two years. The projection translates into an annual bandwidth demand of more than a half a zettabyte, the equivalent of at least 125 billion ...
2008 is going to be an important year for Rich Internet Applications. Most organizations are delivering or planning to deliver Rich Internet Applications; however, at the same time, most IT managers are facing a dilemma: which Rich Internet Application technology and platform to use? T...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING INTERNET TV NEWS
comScore, Inc. (Nasdaq: SCOR), a leader in measuring the digital world, today released the results o...