Doesn't fail when removeStream is called on FF.
This commit is contained in:
parent
e1d71a41f7
commit
9d50084b98
|
@ -14483,7 +14483,12 @@ TraceablePeerConnection.prototype.removeStream = function (stream, stopStreams)
|
||||||
track.stop();
|
track.stop();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
this.peerconnection.removeStream(stream);
|
this.peerconnection.removeStream(stream);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {
|
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {
|
||||||
|
|
|
@ -161,7 +161,13 @@ TraceablePeerConnection.prototype.removeStream = function (stream, stopStreams)
|
||||||
track.stop();
|
track.stop();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// FF doesn't support this yet.
|
||||||
this.peerconnection.removeStream(stream);
|
this.peerconnection.removeStream(stream);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {
|
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {
|
||||||
|
|
Loading…
Reference in New Issue