Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1136 Discussions

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

ht__y
Beginner
128 Views

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.

0 Kudos
0 Replies
Reply