New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mediasoup-client

Package Overview
Dependencies
Maintainers
2
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mediasoup-client - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

28

lib-es5/index.js

@@ -9,3 +9,8 @@ 'use strict';

exports.getDeviceInfo = getDeviceInfo;
exports.checkCapabilitiesForRoom = checkCapabilitiesForRoom;
var _ortc = require('./ortc');
var ortc = _interopRequireWildcard(_ortc);
var _Device = require('./Device');

@@ -21,2 +26,4 @@

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
/**

@@ -54,2 +61,23 @@ * Whether the current browser or device is supported.

/**
* Check whether this device/browser can send/receive audio/video in a room
* whose RTP capabilities are given.
*
* @param {Object} Room RTP capabilities.
*
* @return {Promise} Resolves to an Object with 'audio' and 'video' Booleans.
*/
function checkCapabilitiesForRoom(roomRtpCapabilities) {
if (!_Device2.default.isSupported()) return Promise.reject(new Error('current browser/device not supported'));
return _Device2.default.Handler.getNativeRtpCapabilities().then(function (nativeRtpCapabilities) {
var extendedRtpCapabilities = ortc.getExtendedRtpCapabilities(nativeRtpCapabilities, roomRtpCapabilities);
return {
audio: ortc.canSend('audio', extendedRtpCapabilities),
video: ortc.canSend('video', extendedRtpCapabilities)
};
});
}
/**
* Expose the Room class.

@@ -56,0 +84,0 @@ *

2

package.json
{
"name": "mediasoup-client",
"version": "2.0.5",
"version": "2.0.6",
"description": "mediasoup client side JavaScript SDK",

@@ -5,0 +5,0 @@ "author": "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",

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