java:语音聊天和文本聊天
我想用Java制作一款纸牌游戏。人们可以在他们的电脑上运行它。他们可以将朋友添加到联系人列表中,当有 4 名玩家在线时,他们可以由主持游戏的玩家之一开始游戏。玩家可以通过文本或语音聊天进行交流。可以将其视为聊天客户端,允许用户玩纸牌游戏并允许 4 名玩家同时进行语音聊天。
我不知道如何进行上述项目。有人可以建议我吗 我可以使用一些框架或其他东西来开发上述应用程序? 它会像一个p2p应用程序吗?
I want to make a card game made in Java. People can run it on their pc. They can add their friends to their contacts list and when there are 4 players online they can begin a game by one of the players hosting the game. The players can communicate by text or by voice chat Think of it like a chat client that allows users to play a card game and allows voice chat between the 4 players at the same time.
i dont know how do go abt the above project.Can anyone suggest me
some framework or other things that i can use to devlop the above app?
Will it be like a p2p application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用此 教程。运行您自己的 jabber 客户端或使用 gTalk 并为客户端编写一些代码。
Start with chat using this tutorial. Run your own jabber client or use gTalk and write some code for the client side.
据我了解,您将制作某种带有文本和音频聊天选项的浏览器或桌面游戏应用程序。
对于聊天应用程序,您将需要后端和客户端解决方案。
如果我理解正确的话,您对聊天应用程序没有太多经验,因此从头开始准备所有内容对您来说可能很棘手。
因此,我建议尝试使用现成的后端和 SDK 来开发应用程序的聊天和音频聊天部分。这将为您节省大量的精力和工作,您将能够专注于聊天和音频聊天的 UI 实现。
由于您同时需要文本聊天和音频聊天解决方案,我可以推荐 ConnectyCube,因为您可以在一个地方找到这两种解决方案。
对于浏览器或桌面应用程序,您可以使用 JS SDK。这是文档如何将其连接到您的项目。
As I understand you are going to make some kind of browser or desktop game app with both text and audio chat options.
For chat app you will need a backend and client-side solutions.
If I understand you right, you have not much experience with chat apps, so preparing everything from scratch might be tricky for you.
Therefore, I'd recommend trying a ready backend and SDK for developing chat and audio chat part of your app. That should spare a lot of effort and work for you and you will be able to concentrate on UI implementation of your chat and audio chat.
Since you need both text chat and audio chat solutions, I can recommend ConnectyCube, since there you can find both at one place.
For browser or desktop apps you can use JS SDK. Here is the documentation how to connect it to your project.