webrtc-adapter
Advanced tools
Comparing version 7.2.2 to 7.2.3
@@ -299,3 +299,3 @@ /* | ||
var audioTransceiver = this.getTransceivers().find(function (transceiver) { | ||
return transceiver.sender.track && transceiver.sender.track.kind === 'audio'; | ||
return transceiver.receiver.track.kind === 'audio'; | ||
}); | ||
@@ -325,3 +325,3 @@ if (offerOptions.offerToReceiveAudio === false && audioTransceiver) { | ||
var videoTransceiver = this.getTransceivers().find(function (transceiver) { | ||
return transceiver.sender.track && transceiver.sender.track.kind === 'video'; | ||
return transceiver.receiver.track.kind === 'video'; | ||
}); | ||
@@ -328,0 +328,0 @@ if (offerOptions.offerToReceiveVideo === false && videoTransceiver) { |
@@ -163,5 +163,7 @@ /* | ||
result.version = extractVersion(navigator.userAgent, /Firefox\/(\d+)\./, 1); | ||
} else if (navigator.webkitGetUserMedia) { | ||
} else if (navigator.webkitGetUserMedia || window.isSecureContext === false && window.webkitRTCPeerConnection && !window.RTCIceGatherer) { | ||
// Chrome, Chromium, Webview, Opera. | ||
// Version matches Chrome/WebRTC version. | ||
// Chrome 74 removed webkitGetUserMedia on http as well so we need the | ||
// more complicated fallback to webkitRTCPeerConnection. | ||
result.browser = 'chrome'; | ||
@@ -168,0 +170,0 @@ result.version = extractVersion(navigator.userAgent, /Chrom(e|ium)\/(\d+)\./, 2); |
{ | ||
"name": "webrtc-adapter", | ||
"version": "7.2.2", | ||
"version": "7.2.3", | ||
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -279,4 +279,3 @@ /* | ||
const audioTransceiver = this.getTransceivers().find(transceiver => | ||
transceiver.sender.track && | ||
transceiver.sender.track.kind === 'audio'); | ||
transceiver.receiver.track.kind === 'audio'); | ||
if (offerOptions.offerToReceiveAudio === false && audioTransceiver) { | ||
@@ -306,4 +305,3 @@ if (audioTransceiver.direction === 'sendrecv') { | ||
const videoTransceiver = this.getTransceivers().find(transceiver => | ||
transceiver.sender.track && | ||
transceiver.sender.track.kind === 'video'); | ||
transceiver.receiver.track.kind === 'video'); | ||
if (offerOptions.offerToReceiveVideo === false && videoTransceiver) { | ||
@@ -310,0 +308,0 @@ if (videoTransceiver.direction === 'sendrecv') { |
@@ -151,5 +151,9 @@ /* | ||
/Firefox\/(\d+)\./, 1); | ||
} else if (navigator.webkitGetUserMedia) { | ||
} else if (navigator.webkitGetUserMedia || | ||
(window.isSecureContext === false && window.webkitRTCPeerConnection && | ||
!window.RTCIceGatherer)) { | ||
// Chrome, Chromium, Webview, Opera. | ||
// Version matches Chrome/WebRTC version. | ||
// Chrome 74 removed webkitGetUserMedia on http as well so we need the | ||
// more complicated fallback to webkitRTCPeerConnection. | ||
result.browser = 'chrome'; | ||
@@ -156,0 +160,0 @@ result.version = extractVersion(navigator.userAgent, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1295150
22951