关键词:安卓一对一测试问题
一、安卓一对一测试问题
今天晚上要做的事:
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日星期日