Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webrtc-adapter

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-adapter - npm Package Compare versions

Comparing version 6.4.4 to 6.4.5

2

package.json
{
"name": "webrtc-adapter",
"version": "6.4.4",
"version": "6.4.5",
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -120,2 +120,3 @@ /*

edgeShim.shimReplaceTrack(window);
edgeShim.shimGetDisplayMedia(window);

@@ -122,0 +123,0 @@ // the edge shim implements the full RTCIceCandidate object.

@@ -891,3 +891,4 @@

shimGetDisplayMedia: function(window, getSourceId) {
if ('getDisplayMedia' in window.navigator) {
if (!window.navigator || !window.navigator.mediaDevices ||
'getDisplayMedia' in window.navigator.mediaDevices) {
return;

@@ -902,3 +903,3 @@ }

}
navigator.getDisplayMedia = function(constraints) {
window.navigator.mediaDevices.getDisplayMedia = function(constraints) {
return getSourceId(constraints)

@@ -923,6 +924,11 @@ .then(function(sourceId) {

}
return navigator.mediaDevices.getUserMedia(constraints);
return window.navigator.mediaDevices.getUserMedia(constraints);
});
};
window.navigator.getDisplayМedia = function(constraints) {
utils.deprecated('navigator.getDisplayMedia',
'navigator.mediaDevices.getDisplayMedia');
return window.navigator.mediaDevices.getDisplayMedia(constraints);
};
}
};

@@ -87,3 +87,19 @@ /*

}
},
shimGetDisplayMedia: function(window, preferredMediaSource) {
if (!('getDisplayMedia' in window.navigator) ||
!window.navigator.mediaDevices ||
'getDisplayMedia' in window.navigator.mediaDevices) {
return;
}
var origGetDisplayMedia = window.navigator.getDisplayMedia;
window.navigator.mediaDevices.getDisplayMedia = function(constraints) {
return origGetDisplayMedia(constraints);
};
window.navigator.getDisplayMedia = function(constraints) {
utils.deprecated('navigator.getDisplayMedia',
'navigator.mediaDevices.getDisplayMedia');
return origGetDisplayMedia(constraints);
};
}
};

@@ -291,6 +291,7 @@ /*

shimGetDisplayMedia: function(window, preferredMediaSource) {
if ('getDisplayMedia' in window.navigator) {
if (!window.navigator || !window.navigator.mediaDevices ||
'getDisplayMedia' in window.navigator.mediaDevices) {
return;
}
navigator.getDisplayMedia = function(constraints) {
window.navigator.mediaDevices.getDisplayMedia = function(constraints) {
if (!(constraints && constraints.video)) {

@@ -309,5 +310,10 @@ var err = new DOMException('getDisplayMedia without video ' +

}
return navigator.mediaDevices.getUserMedia(constraints);
return window.navigator.mediaDevices.getUserMedia(constraints);
};
window.navigator.getDisplayМedia = function(constraints) {
utils.deprecated('navigator.getDisplayMedia',
'navigator.mediaDevices.getDisplayMedia');
return window.navigator.mediaDevices.getDisplayMedia(constraints);
};
}
};

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc