Doesn't fail when removeStream is called on FF.

This commit is contained in:
George Politis 2015-03-12 17:00:40 +01:00
parent e1d71a41f7
commit 9d50084b98
2 changed files with 13 additions and 2 deletions

View File

@ -14483,7 +14483,12 @@ TraceablePeerConnection.prototype.removeStream = function (stream, stopStreams)
track.stop();
});
}
try {
this.peerconnection.removeStream(stream);
} catch (e) {
console.error(e);
}
};
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {

View File

@ -161,7 +161,13 @@ TraceablePeerConnection.prototype.removeStream = function (stream, stopStreams)
track.stop();
});
}
try {
// FF doesn't support this yet.
this.peerconnection.removeStream(stream);
} catch (e) {
console.error(e);
}
};
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {