diff --git a/src/views/tinode-web.jsx b/src/views/tinode-web.jsx index 0326f042..e548b096 100644 --- a/src/views/tinode-web.jsx +++ b/src/views/tinode-web.jsx @@ -1714,7 +1714,7 @@ class TinodeWeb extends React.Component { if (!topic) { return; } - + topic.call('ringing', callSeq); } @@ -1723,7 +1723,7 @@ class TinodeWeb extends React.Component { if (!topic) { return; } - + topic.call('hang-up', callSeq); } @@ -1732,7 +1732,7 @@ class TinodeWeb extends React.Component { if (!topic) { return; } - + topic.call('offer', callSeq, sdp); } @@ -1741,7 +1741,7 @@ class TinodeWeb extends React.Component { if (!topic) { return; } - + topic.call('ice-candidate', callSeq, candidate); } handleCallSendAnswer(callTopic, callSeq, sdp) { @@ -1749,7 +1749,7 @@ class TinodeWeb extends React.Component { if (!topic) { return; } - + topic.call('answer', callSeq, sdp); } diff --git a/src/widgets/call-panel.jsx b/src/widgets/call-panel.jsx index b40cf9ef..d6a79549 100644 --- a/src/widgets/call-panel.jsx +++ b/src/widgets/call-panel.jsx @@ -149,10 +149,10 @@ export default class CallPanel extends React.PureComponent { handleVideoAnswerMsg(info) { console.log("*** Call recipient has accepted our call"); - + // Configure the remote description, which is the SDP payload // in our "video-answer" message. - + var desc = new RTCSessionDescription(info.payload); this.state.pc.setRemoteDescription(desc).catch(this.reportError); } @@ -179,7 +179,7 @@ export default class CallPanel extends React.PureComponent { handleNewICECandidateMsg(info) { var candidate = new RTCIceCandidate(info.payload); - + this.state.pc.addIceCandidate(candidate) .catch(this.reportError); } @@ -234,11 +234,11 @@ export default class CallPanel extends React.PureComponent { handleVideoOfferMsg(info) { var localStream = null; - + const pc = this.createPeerConnection(); - + var desc = new RTCSessionDescription(info.payload); - + pc.setRemoteDescription(desc).then(() => { console.log('!!! handleVideoOffer/setRemoteDescription -> getUserMesia'); return navigator.mediaDevices.getUserMedia(this.localStreamConstraints); @@ -247,7 +247,7 @@ export default class CallPanel extends React.PureComponent { localStream = stream; this.localRef.current.srcObject = stream; this.setState({localStream: stream}); - + localStream.getTracks().forEach(track => { console.log('local stream A adding track ', track.id, track.kind, track.readyState); pc.addTrack(track, localStream);