@twilio/webrtc
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -0,1 +1,10 @@ | ||
2.1.3 (August 28, 2018) | ||
======================= | ||
Bug Fixes | ||
--------- | ||
- Fixed a bug in Firefox where calling `addTransceiver` wouldn't update the | ||
result of `getSenders`. | ||
2.1.2 (August 7, 2018) | ||
@@ -2,0 +11,0 @@ ====================== |
@@ -156,2 +156,15 @@ /* globals mozRTCPeerConnection, RTCPeerConnection */ | ||
if (PeerConnection.prototype.addTransceiver) { | ||
FirefoxRTCPeerConnection.prototype.addTransceiver = function addTransceiver() { | ||
var transceiver = this._peerConnection.addTransceiver.apply(this._peerConnection, arguments); | ||
var sender = transceiver.sender; | ||
var track = sender.track; | ||
if (track && needsWorkaroundForBug1480277) { | ||
sender.replaceTrack(track); | ||
} | ||
this._senders.set(track, sender); | ||
return transceiver; | ||
}; | ||
} | ||
// NOTE(mmalavalli): RTCPeerConnection#removeTrack() has a bug in the | ||
@@ -158,0 +171,0 @@ // Firefox <--> Chrome interop case, which is mentioned below. So we disable |
{ | ||
"name": "@twilio/webrtc", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "WebRTC-related APIs and shims used by twilio-video.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
108792
2532