Kurento Media Server 6.6和NAT背后的一个2个应用程序



我正在运行KMS服务器和Kurento一对一的呼叫NAT。我只能在VPN下方连接我的电话。在VPN之外,我无法连接呼叫。

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 Server这是此域stun.l.google.com。

相关内容

最新更新