Remove trailing spaces.
This commit is contained in:
@@ -1714,7 +1714,7 @@ class TinodeWeb extends React.Component {
|
|||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.call('ringing', callSeq);
|
topic.call('ringing', callSeq);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1723,7 +1723,7 @@ class TinodeWeb extends React.Component {
|
|||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.call('hang-up', callSeq);
|
topic.call('hang-up', callSeq);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1732,7 +1732,7 @@ class TinodeWeb extends React.Component {
|
|||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.call('offer', callSeq, sdp);
|
topic.call('offer', callSeq, sdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1741,7 +1741,7 @@ class TinodeWeb extends React.Component {
|
|||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.call('ice-candidate', callSeq, candidate);
|
topic.call('ice-candidate', callSeq, candidate);
|
||||||
}
|
}
|
||||||
handleCallSendAnswer(callTopic, callSeq, sdp) {
|
handleCallSendAnswer(callTopic, callSeq, sdp) {
|
||||||
@@ -1749,7 +1749,7 @@ class TinodeWeb extends React.Component {
|
|||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.call('answer', callSeq, sdp);
|
topic.call('answer', callSeq, sdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -149,10 +149,10 @@ export default class CallPanel extends React.PureComponent {
|
|||||||
|
|
||||||
handleVideoAnswerMsg(info) {
|
handleVideoAnswerMsg(info) {
|
||||||
console.log("*** Call recipient has accepted our call");
|
console.log("*** Call recipient has accepted our call");
|
||||||
|
|
||||||
// Configure the remote description, which is the SDP payload
|
// Configure the remote description, which is the SDP payload
|
||||||
// in our "video-answer" message.
|
// in our "video-answer" message.
|
||||||
|
|
||||||
var desc = new RTCSessionDescription(info.payload);
|
var desc = new RTCSessionDescription(info.payload);
|
||||||
this.state.pc.setRemoteDescription(desc).catch(this.reportError);
|
this.state.pc.setRemoteDescription(desc).catch(this.reportError);
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,7 @@ export default class CallPanel extends React.PureComponent {
|
|||||||
|
|
||||||
handleNewICECandidateMsg(info) {
|
handleNewICECandidateMsg(info) {
|
||||||
var candidate = new RTCIceCandidate(info.payload);
|
var candidate = new RTCIceCandidate(info.payload);
|
||||||
|
|
||||||
this.state.pc.addIceCandidate(candidate)
|
this.state.pc.addIceCandidate(candidate)
|
||||||
.catch(this.reportError);
|
.catch(this.reportError);
|
||||||
}
|
}
|
||||||
@@ -234,11 +234,11 @@ export default class CallPanel extends React.PureComponent {
|
|||||||
|
|
||||||
handleVideoOfferMsg(info) {
|
handleVideoOfferMsg(info) {
|
||||||
var localStream = null;
|
var localStream = null;
|
||||||
|
|
||||||
const pc = this.createPeerConnection();
|
const pc = this.createPeerConnection();
|
||||||
|
|
||||||
var desc = new RTCSessionDescription(info.payload);
|
var desc = new RTCSessionDescription(info.payload);
|
||||||
|
|
||||||
pc.setRemoteDescription(desc).then(() => {
|
pc.setRemoteDescription(desc).then(() => {
|
||||||
console.log('!!! handleVideoOffer/setRemoteDescription -> getUserMesia');
|
console.log('!!! handleVideoOffer/setRemoteDescription -> getUserMesia');
|
||||||
return navigator.mediaDevices.getUserMedia(this.localStreamConstraints);
|
return navigator.mediaDevices.getUserMedia(this.localStreamConstraints);
|
||||||
@@ -247,7 +247,7 @@ export default class CallPanel extends React.PureComponent {
|
|||||||
localStream = stream;
|
localStream = stream;
|
||||||
this.localRef.current.srcObject = stream;
|
this.localRef.current.srcObject = stream;
|
||||||
this.setState({localStream: stream});
|
this.setState({localStream: stream});
|
||||||
|
|
||||||
localStream.getTracks().forEach(track => {
|
localStream.getTracks().forEach(track => {
|
||||||
console.log('local stream A adding track ', track.id, track.kind, track.readyState);
|
console.log('local stream A adding track ', track.id, track.kind, track.readyState);
|
||||||
pc.addTrack(track, localStream);
|
pc.addTrack(track, localStream);
|
||||||
|
|||||||
Reference in New Issue
Block a user