Re: Chating application which incorporates voice (voip)
- From: Mehdi <vioccc@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 5 Jan 2007 15:11:20 +0000
On 5 Jan 2007 01:27:43 -0800, deepak wrote:
we have a requirement of developing the chat application which should
have both text based chating as well as voice based, we know
developing a text based chat app is straight,but having voice chat
incorporated ??,hmm .. could any body give me some suggestions, links,
code or throw some insight on this topic, which can help me in
satifying the requirements
If you need to develop your own VOIP system from scratch, there's a lot of
work ahead of you. You'll have to use DirectShow to capture the audio on
one side and render it on the other. There is no .NET version of DirectShow
so you'll have to explore the joys of COM interop (to control the
DirectShow graph) and unmanaged C++ (to write the necessary DirectShow
filters). The DirectShow .NET open source project will help
(<http://sourceforge.net/projects/directshownet/>). Then you'll need to
find a suitable codec to compress and decompress the audio. Speex is a
reasonable option (<http://www.speex.org/>) but there will be some work
(not much) to make it work from within your DirectShow graph. Then comes
the thoughest part: transmiting the audio data over the network. Forget
about .NET remoting, it definitely isn't suited for that. You'll have to
use good ol' sockets and implement some protocol (on top of either UDP or
TCP, you decide), either a standard one such as RTP or your own. And deal
with all the latency, delayed anc lost packets, clock drifts problems...
This excellent book
<http://www.amazon.com/RTP-Video-Internet-Colin-Perkins/dp/0672322498> will
give you an overview of what RTP is and of the challenges of developping a
real-time audio/video solution in general (that applies to audio only as
well of course). Also, check out Microsoft's open source Conference XP
project <http://research.microsoft.com/conferencexp/>
Or, as James suggested, see if there isn't a way to use a third party tool
that you can integrate within your app. James mentionned skype. I
personally have used Flash Communication Server (now renamed media server i
think) to add a video conferencing feature to my C# application before
rolling out my own. It worked but was very expensive and clunky both from
the developers and the end user point of view.
.
- References:
- Chating application which incorporates voice (voip)
- From: deepak
- Chating application which incorporates voice (voip)
- Prev by Date: Raise event to client
- Next by Date: Problem using remote controls
- Previous by thread: Re: Chating application which incorporates voice (voip)
- Next by thread: Raise event to client
- Index(es):
Relevant Pages
|