2017-09-06 3 views
0

RTCDataChannel(webRTC)を実装しようとしています。RTCDataChannelレディ状態がクロムで接続されているのにFirefoxで動作しています

Firefoxではうまくいきますが、Chromeではうまくいきません。

ChromeとFirefoxはどちらも最新のバージョンです。 Chromeで

RTCDataChannelオブジェクト: - Firefoxで

RTCDataChannel { 
binaryType: "arraybuffer" 
bufferedAmount: 0 
bufferedAmountLowThreshold: 0 
id: 65535 
label: "sendDataChannel" 
maxRetransmitTime: 65535 
maxRetransmits: 65535 
negotiated: false 
onbufferedamountlow: null 
onclose: null 
onerror: ƒ (event) 
onmessage: ƒ (event) 
onopen: ƒ dataChannelStateChanged() 
ordered: true 
protocol: "" 
readyState: "connecting" 
reliable: false__proto__:} 

RTCDataChannelオブジェクト: - 私はすでに以下のリンクを経てい

DataChannel { 
binaryType: "blob" 
id: 0 
label: "sendDataChannel", 
reliable: true, 
readyState: "open", 
bufferedAmount: 0, 
bufferedAmountLowThreshold: 0, 
onopen: dataChannelStateChanged(), 
onerror: create_peer_connection/dataChannel.onerror(), 
onclose: null, 
onmessage: create_peer_connection/dataChannel.onmessage(), 
onbufferedamountlow: null 
protocol:"" 
ordered:true} 

: -

  1. WebRTC data channel stack on readyState "conecting"
  2. WebRTC dataChannel.readyState stalling on "connecting"
  3. RTCDataChannel's ReadyState is not 'open'
  4. Webrtc Data Channel always in connecting state and not open

クロムに問題の背後にある理由は何ができるかを提案してください?

答えて

1

私は次のポストを使用して、それを解決することができました:

WebRTC DataChannel: working in Firefox but not Chrome

私はこれが私のために働いた

pc = new RTCPeerConnection(configuration); 
+0

pc = new RTCPeerConnection(configuration, {optional: [{RtpDataChannels: true}]}); 

を変更する必要がありました –

関連する問題