gelen aramaya cevap vermek benim kodudur:RTCPeerConnection.createAnswer geri arama WebRTC'de için mozilla tanımsız nesne sohbet döndürür
var pc = connection.pc;
pc.setRemoteDescription(sdp,function() {
pc.createAnswer(function(answer) {
pc.setLocalDescription(answer,function() {
// code for sending the answer
})
})
})
Yukarıdaki kod krom için çalışıyor, ama mozilla aynı çalıştırdığınızda, pc.createAnswer
numaralı telefondan alınan answer
, geri bildirim undefined
'dur. bana aşağıdaki hata veren bir sonucu olarak:
TypeError: Argument 1 of RTCPeerConnection.setLocalDescription is not an object.
MDN'yi güncelledim. – jib