|
@@ -265,16 +265,6 @@ Negotiator.handleSDP = function(type, connection, sdp) {
|
|
util.log('Set remoteDescription:', type, 'for:', connection.peer);
|
|
util.log('Set remoteDescription:', type, 'for:', connection.peer);
|
|
|
|
|
|
if (type === 'OFFER') {
|
|
if (type === 'OFFER') {
|
|
- if (connection.type === 'media') {
|
|
|
|
- if (connection.localStream) {
|
|
|
|
- // Add local stream (from answer).
|
|
|
|
- pc.addStream(connection.localStream);
|
|
|
|
- }
|
|
|
|
- //util.setZeroTimeout(function(){
|
|
|
|
- // // Add remote streams
|
|
|
|
- // connection.addStream(pc.getRemoteStreams()[0]);
|
|
|
|
- //});
|
|
|
|
- }
|
|
|
|
Negotiator._makeAnswer(connection);
|
|
Negotiator._makeAnswer(connection);
|
|
}
|
|
}
|
|
}, function(err) {
|
|
}, function(err) {
|