In the previous three articles, I realized some of the features of the audio chat room, including: text chat, shared whiteboard, voice chat. In this article I will describe the technical essentials of video session implementation.
In the SILERLIGHT4 has integrated the camera and the acquisition sound function, but in the WPF4 has not directly can use the control, thus also can see, from the desktop program toward the Web program trend. If you want to use Silverlight to implement a similar audio chat room, I'll list some of the information below for your reference.
1. Your the Voice/video chatting client/server:
Http://www.codeproject.com/KB/silverlight/SilverlightVoiceVideoChat.aspx
2. Accessing Web Camera and microphone:
http://www.silverlight.net/learn/videos/all/access-web-camera-microphone/
3, the record of the Audio into A Wave File:
http://cspeex.codeplex.com/
4. Playback the Wave File in Silverlight:
Http://blogs.msdn.com/gillesk/archive/2009/03/23/playing-back-wave-files-in-silverlight.aspx
5. Using the g.711 Codec:
Http://www.codeproject.com/KB/security/g711audio.aspx
6. Convert encode and decode Silverlight:
Http://kodierer.blogspot.com/2009/11/convert-encode-and-decode-silverlight.html
This is the scenario and data for Silverlight implementation. This article is implemented with WPF+WCF. Listing Silerlight is convenient for everyone to have a comparison.
Video session implementation is the same as the way voice calls are implemented. The difference between them is that one gets the data through the microphone, and the other is the data from the camera. Below I use WF4 to draw a flowchart (this flowchart is just to illustrate the problem, not in the program).