Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
3 Views

Intel_CS_WebRTC.v4.0 iceservers coturn的使用问题

1、下载了Intel_CS_WebRTC.v4.0

2、部署了Signaling Server 和 coTurn Server

3、客户端win10系统  Chorme浏览器,运行peercall.html 网页,修改了服务器地址

var serverAddress='http://10.68.199.180:8095/';  // Please change example.com to signaling server's address

    const signaling = new SignalingChannel();

    let publicationForCamera;

    let publicationForScreen;

    var p2p = new Ics.P2P.P2PClient({

      audioEncodings: true,

      videoEncodings: [{codec:{name: 'h264'}}, {codec: {name: 'vp9'}}, {codec: {name: 'vp8'}}],

       iceServers: [{

         urls: "stun:10.68.199.228:3478",

                   credential: "ling1234",

         username: "ling"

      },

             {

          urls: [

          "turn:10.68.199.228:3478?transport=udp",

          "turn:10.68.199.228:3478?transport=tcp"

       ],

        credential: "ling1234",

        username: "ling"

        } ]

      }, signaling);

4、图一情况下在同一个局域网里能够成功,  图二情况下连接失败,coturn服务器应该是正常运行,而且网页端没有发起coturn server的网络请求(turnserver 没有显示网络请求,客户机抓包软件也没有发现有网络请求包),不知道问题出在什么地方。

5、错误提示 :

Signaling state changed: closed
ics.js:9 Uncaught (in promise) Error
    at new t (ics.js:9)
    at t.value (ics.js:9)
    at t.value (ics.js:9)
    at t.value (ics.js:9)
    at t.value (ics.js:9)
    at SignalingChannel.o.onMessage (ics.js:9)
    at Socket.<anonymous> (sc.websocket.js:115)
    at Socket.Emitter.emit (socket.io.js:3)
    at Socket.onevent (socket.io.js:3)
    at Socket.onpacket (socket.io.js:3)
t @ ics.js:9
value @ ics.js:9
value @ ics.js:9
value @ ics.js:9
value @ ics.js:9
o.onMessage @ ics.js:9
(anonymous) @ sc.websocket.js:115
Emitter.emit @ socket.io.js:3
Socket.onevent @ socket.io.js:3
Socket.onpacket @ socket.io.js:3
(anonymous) @ socket.io.js:3
Emitter.emit @ socket.io.js:3
Manager.ondecoded @ socket.io.js:2
(anonymous) @ socket.io.js:3
Emitter.emit @ socket.io.js:2
Decoder.add @ socket.io.js:3
Manager.ondata @ socket.io.js:2
(anonymous) @ socket.io.js:3
Emitter.emit @ socket.io.js:2
Socket.onPacket @ socket.io.js:1
(anonymous) @ socket.io.js:1
Emitter.emit @ socket.io.js:2
Transport.onPacket @ socket.io.js:1
Transport.onData @ socket.io.js:1
ws.onmessage @ socket.io.js:1
ics.js:9 Data Channel is closed.

Tags (2)
0 Kudos