WebRTC를 사용하여 피어 - 투 - 피어 오디오 컨퍼런스를 구현하고 싶습니다. 나는 같은 것을 구현하기 위해 RTCMultiConnection.js을 시도했지만, NAT 외부의 네트워크 외부에서 그것을 재생하기 위해 몇 가지 문제를 직면했다. 나는 STUN 및 TURN 설정을 시도했지만 동일한 문제가 남아 있습니다. "ICE 연결에 실패했습니다. 피어 연결 재 연결 중"오류가 발생합니다. 아래와 같이WebRTC peer-to-peer 구현 방법 RTCMultiConnection을 사용하여 메시 토폴로지에서 오디오 컨퍼런스 수행
STUN 및 TURN 구성 : 나는 WebRTC-Scalable-Broadcast의 업데이트 데모를 사용하고
function initRTCMultiConnection(userid) {
var connection = new RTCMultiConnection();
connection.body = document.getElementById('videos-container');
connection.channel = connection.sessionid = connection.userid = userid || connection.userid;
connection.sdpConstraints.mandatory = {
OfferToReceiveAudio: false,
OfferToReceiveVideo: true
};
var iceServers = [];
iceServers.push({
url: 'stun:stun.l.google.com:19302'
});
iceServers.push({
url: 'stun:stun.anyfirewall.com:3478'
});
iceServers.push({
url: 'turn:turn.anyfirewall.com:443?transport=tcp',
credential: 'webrtc',
username: 'webrtc'
});
connection.iceServers = iceServers;
.
해결책을 제안하십시오.
WebRTC를 사용하여 피어 - 투 - 피어 오디오 회의를 설정하는 데 사용할 수있는 대체 API/라이브러리가 있습니까?