Kurento Media服务器6.6和Nat之后的一个2个应用程序

时间:2017-05-29 15:13:56

标签: webrtc nat kurento

我在Nat后面运行KMS服务器和kurento一对一的呼叫。我在VPN下时只能连接我的电话。在Vpn之外,我无法连接电话。

1 个答案:

答案 0 :(得分:0)

let options = {
    localVideo: video,
    mediaConstraints: constraints,
    onicecandidate: localParticipant.onIceCandidate.bind(localParticipant),
    configuration : { iceServers : [
               {"url":"stun:74.125.200.127:19302"},
               ] } 
};

localParticipant.rtcPeer = new kurentoUtils.WebRtcPeer.WebRtcPeerSendonly(options, function(error) {
    if (error) {
        return console.error(error);
    }

    localVideoCurrentId = sessionId;

    localVideo = document.getElementById('local_video');
    localVideo.src = localParticipant.rtcPeer.localVideo.src;
    localVideo.muted = true;

    this.generateOffer(localParticipant.offerToReceiveVideo.bind(localParticipant));
});

此处的击晕服务器是此域名stun.l.google.com的IP。