如何在WPF中创建语音聊天 [英] how to create voice chat in wpf
本文介绍了如何在WPF中创建语音聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个WPF应用程序,其中服务器调用特定的客户端,并且客户端在服务器计算机上侦听用户.我没有太多的WPF或C#经验,所以您在开发过程中提供的任何帮助将不胜感激.
I am looking to develop a WPF application in which a server calls a specific client, and the client listens to the user on the server machine. I don''t have much WPF or C# experience, so any help you could give me in starting out the development would be much appreciated.
推荐答案
首先查看对等WCF服务:
http://msdn.microsoft.com/en-us/library/cc297274.aspx [ ^ ]
我认为您应该重新考虑您的体系结构:随着流量通过服务器,它将遇到可伸缩性问题.我会根据您的需要提供更好的解决方案,可能会
I''d start by looking at peer to peer WCF services:
http://msdn.microsoft.com/en-us/library/cc297274.aspx[^]
I think you should reconsider you architecture: it will have scalability problems as the traffic goes through the server. I better solution, depending upon what you need, might be
- 当客户端登录"计算机时,该计算机在中央服务器处受阻
- 当一个客户端呼叫另一个客户端时,它会从中央服务器获取连接所需的信息
- 客户端与被叫客户端建立对等连接.
这样,中央服务器就不会参与对话.这种设置的主要缺点是开发起来比较复杂.
This way the central server is not involved with the conversation. The main drawback with this set up is that it is more complicated to develop.
您可能想看看这篇有用的文章- ^ ].
You might want to look at this useful article - WPF.WCF Chat Application Simplified via P2P[^].
这篇关于如何在WPF中创建语音聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文