Android WebRTC无法与3g,4g一起使用 [英] Android webrtc not working with 3g, 4g

查看:142
本文介绍了Android WebRTC无法与3g,4g一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在android应用程序中,我有用于视频通话应用程序的用户webrtc.

In android application i have user webrtc for video calling app.

如果移动设备已与wifi连接,则应用程序可以完美运行.

If mobile is connected with wifi then app work perfectly.

当我将wifi更改为移动数据并启动应用程序时,应用程序将无法运行,也不会显示视频.

When i change wifi to mobile data and start app then app not work and also not display video .

我的应用程序和服务器端kurento中都有用户webrtc.

I have user webrtc in my app and server side kurento.

具有以下状态的方案列表:

  1. 浏览器客户端+移动客户端-> 两者都在同一Wifi网络上(KMS服务器位于同一个wifi网络上)->工作正常.
  2. 移动客户端+移动客户端-> 两者都在同一Wifi网络上(KMS服务器位于同一个wifi网络上)->工作正常.
  3. 浏览器客户端+移动客户端-> 其中一个在wifi上(KMS服务器位于相同的wifi网络)和其他移动数据网络上的->不起作用
  4. 移动客户端+移动客户端-> 其中一个在wifi上(KMS服务器位于相同的wifi网络)和其他移动数据网络上的->不起作用

我们已经检查了针对所有这种情况生成的候选对象,发现它们是相同的,唯一的区别是生成了多个候选对象.

在具有3g连接的Android客户端中,我们具有板条箱翻转服务器和Stun,但视频无法显示.

We have crate Turn server as well as Stun but video not display in android client with 3g connection.

任何人都有解决方案,然后帮帮我.

Any one have solution then help me out.

谢谢.

推荐答案

从理论上讲,网络类型不应该影响WebRTC是否起作用.

Theoretically the network type shouldn't influence if WebRTC works or not.

但是,还有其他因素影响这一点.首先,如果两个设备都连接到同一个Wi-fi网络,则不需要TURN服务器.如果通过移动数据连接,则不可能如此,因此您应该配置一个STUN/TURN服务器.要测试服务器,您可以使用 https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/.

But, there are other factors influencing this. First of all if both devices are connected into the same Wi-fi network, then you don't need a TURN server. If connected through mobile data, this could not be the case, so you should have a STUN/TURN server configured. To test the server you can use https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/.

第二,网络质量可能会影响连接.您应该进行网络速度测试,并记住延迟和抖动比下载/上传速度更为重要.您可以禁用视频并仅使用占用带宽更少的音频进行测试.

Secondly, the network quality could influence the connection. You should do a network speed test and remember that latency and jitter is even more important than download/upload speed. You could disable video and test only with audio which eats fewer bandwidth.

这篇关于Android WebRTC无法与3g,4g一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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