【问题标题】:peer js Audio chatpeer js 语音聊天
【发布时间】:2015-05-19 10:21:34
【问题描述】:

我只是在查看https://github.com/nwah/peerjs-audio-chat 中提供的聊天应用程序

实际上只用两个浏览器聊天是很有趣的。我对这个peer js有一些疑问。我还从那里的网站获得了免费的 Api 密钥

我刚刚按照 github 链接中的说明启动了应用程序。

1. But What should i do, if i want to get Connected with another user with another API key.

2. Suppose There is someone in another computer, with another Api key, Will he'll be connected, Is there any specification if he want to run the app in same port number as given in for my app

因为我没有连接我尝试了很多方法,连接总是出错,如果其他用户想和我连接,还有什么其他应该做的吗...?

谢谢

【问题讨论】:

    标签: javascript peerjs


    【解决方案1】:

    对不起,但这对我来说没有意义。一个聊天应用程序通常会使用一个 API 密钥。因此,所有连接用户都将拥有相同的 API 密钥。如果我的问题错了,请纠正我。

    (没有足够的声誉或者会留下这个作为评论。)

    【讨论】:

      【解决方案2】:

      使用提供的呼叫另一端的唯一 peerId 连接两个对等点。您注册的 API 密钥只是一种使用中间服务器连接您的对等方进行初始连接的方式(可以选择托管您自己的服务器来处理建立连接)。

      1. 你不能。

      2. 没有。

      我相信您的问题根本上来自对一些网络概念的误解。

      【讨论】:

        猜你喜欢
        • 2014-11-03
        • 2010-12-04
        • 2012-07-29
        • 1970-01-01
        • 1970-01-01
        • 2019-06-29
        • 2012-05-20
        • 2023-03-22
        • 1970-01-01
        相关资源
        最近更新 更多