第14篇 安卓一对一测试问题(二)

关键词:安卓一对一测试问题

一、安卓一对一测试问题

今天晚上要做的事:

1.1 对比服务器上一对一与官网,把官网更新的放到服务器上

1.2 和同事测通老板那边的办公室的wifi

a) PC 对安卓手机--------------内网

连不上,提示信息如下:

Remote peer's candidate pairs: candidate:28219396061 tcp 1518280447 192.168.1.133 0 typ host tcptype active generation 0

就是说这一行报错了,官网上说法如下:

What is signaling and why it isneeded? //信号是什么,为什么它是需要的。

Interoperable real-time mediabetween browsers uses RTP(real-time ports:实时端口).

//浏览器

RTP depends on the existence of asignaling channel to establish a common understanding of the meaning ofpackets.//信号channel

This includes identification ofdifferent streams, codecs, and codec parameters.

Applications that establishpeer-to-peer transports require that the IP addressesof a peer are signaled to the remote peer.

Each real-time port consists of an IP address, a port number, a username fragment andpassword.(一个实时端口由IP地址,端口号,用户名和密码组成。) This information is exchangedwith the remote peer using whatever signaling mechanism is chosen by theapplication.

In order to establish a transportbetween a local peer and remote peer,thefollowing process is applied://本地和远程建立传输:

The local peer opens one or more real-time ports. ( RTP )

The local peer then has to learnof the ports that its remote peer has opened. This usesa signaling channel specific to the application. For instance, aweb application could use previously HTTP requests or Websockets connectionsfor this purpose.//可以使用http请求或websockets来使本地peer获取远程的打开的房间。

A process of discovery is used tofind a local and remote port pair (a candidate pair) that can exchangeUDP packets. One or more connectivity checks are madefrom different local ports toward different remote ports. A successfulconnectivity check indicates that packets can reach the peer and that the peerconsents to receive packets.

Finally, a real-time transport isestablished on the pair of ports. A security context is established so thatsecured media packets are able to flow in both directions between peers.Real-Time media streams can then be added to the transport.

The initial connection betweenpeers must be accomplished via an application server that provides for userdiscovery, communication, and Network Address Translation (NAT) with datastreaming.//peers之间初始化的连接必须经由应用服务器提供找用户,沟通,网络地址传输(NAT), 这个过程伴随着数据流的传输。

Signalling is the mechanism bywhich peers send control messages to each other for the purpose of establishingthe communication protocol, channel, and method. These are not specified in theWebRTC standard. Rather, the developer may choose any messaging protocol (suchas SIP or XMPP), and any two-way communication channel (such as WebSocket orXMLHttpRequest) in tandem with a persistent connection server API (likethe Google Channel API) for AppEngine.

b) 这个问题也要解决

The MediaStream 'ended' event isdeprecated and will be removed in M54, around October 2016. Seehttps://www.chromestatus.com/features/5730404371791872 for more details.

2016年11月27日星期日

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值