在客户端为AppRTCDemo添加拨号/接收信令机制 [英] Add dial/receive signalling mechanism for AppRTCDemo at client side

查看:119
本文介绍了在客户端为AppRTCDemo添加拨号/接收信令机制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AppRTCDemo及其在其服务器上的工作.当前的聊天室名称交换机制和进入同一会议室的机制是如何连接对等方的.

Hi I am using AppRTCDemo and its working on their server. How ever the current mechanism is for exchanging chat-rooms name and entering the same room connects the peers.

但是我想拨打一个设备的电话以接听另一设备的电话,然后同伴应该进入一个进行视频会话的房间,

But I want to dial a call from one device to receive a call from other device and then peers should enter a room for video session ,

我进行了很多搜索,我想出了我需要的信号服务器,而我没有,也不想把手放在它上,

I have searched a lot , I have come up with for that I need signalling-server which I don't have and don't want to put hands on it ,

现在在这种情况下,另一台设备如何才能知道一个设备正在拨号并共享特定的房间名称,以便在Android客户端接受和进入同一房间进行视频通话.

Now in this situation how can the other device know that device one is dialing and sharing particular room name to accept and enter the same room for video call at client side in Android .

https://github.com/njovy/AppRTCDemo

推荐答案

WebRTC 有两个android apk可用,appRtcDemowebRtcDemo. appRtcDemo apk可用于android设备到浏览器的连接.您需要提供房间ID才能连接到一个房间.如果您是房间发起人,则必须输入-1. 如果要连接两个android设备,则必须编译并安装webRtcDemo apk.这个apk界面提供了输入其他设备的ip地址的地方,反之亦然,然后将连接两个设备.

There are two android apk available for WebRTC, appRtcDemo and webRtcDemo. appRtcDemo apk can be used for android device to browser connectivity. You need to provide room id to connect to one room. If you are the room initiator then you have to enter -1. If you want to connect two android device then you have to compile and install webRtcDemo apk. This apk interface provide place to enter ip address of another device and vice versa then both device will be connected.

请通过-> http://www.webrtc.org/reference/getting-开始

有关更多信息.我已经编译并安装了两个APK,并检查了它们的工作原理.

For more information. Both the apks i've compiled and installed and checked how it works.

我能够使用webrtcdemo在两个Android设备之间成功拨打电话.但是我使用办公室网络的WLAN进行了测试.我没有进一步使用它,因为我正在使用apprtcdemo作为应用程序参考.我的建议是,当您在webrtcdemo中输入远程IP时,只需检查是否未选中环回即可.我想为您启用了环回功能,因此尽管您已输入远程IP,但您仍会收到自己的视频数据包.确保拨打电话时禁用环回.

I was able to make calls successfully between two android device using webrtcdemo. But I tested using WLAN of my office network. I did not use it further because I was using apprtcdemo for app reference. My suggestion is when you enter remote ip in webrtcdemo,just check if loop-back is unchecked. I guess for you loop-back is enabled, so you are receiving your own video packet, though you have entered remote ip. Make sure loop-back is disabled while making call.

这篇关于在客户端为AppRTCDemo添加拨号/接收信令机制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆