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

openvidu-browser

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openvidu-browser - npm Package Compare versions

Comparing version 2.16.0 to 2.16.1

static/js/openvidu-browser-2.16.1.js

10

lib/OpenVidu/OpenVidu.js

@@ -267,7 +267,7 @@ "use strict";

// Accept: Chrome (desktop and Android), Firefox (desktop and Android), Opera (desktop and Android),
// Safari (OSX and iOS), Ionic (Android and iOS), Samsung Internet Browser (Android)
if (platform.isSafariBrowser() || platform.isChromeBrowser() || platform.isChromeMobileBrowser() ||
// Safari (OSX and iOS), Edge Chromium (>= 80), Ionic (Android and iOS), Samsung Internet Browser (Android)
if (platform.isChromeBrowser() || platform.isChromeMobileBrowser() ||
platform.isFirefoxBrowser() || platform.isFirefoxMobileBrowser() || platform.isOperaBrowser() ||
platform.isOperaMobileBrowser() || platform.isAndroidBrowser() || platform.isElectron() ||
platform.isSamsungBrowser()) {
platform.isOperaMobileBrowser() || platform.isSafariBrowser() || platform.isEdgeBrowser() ||
platform.isAndroidBrowser() || platform.isElectron() || platform.isSamsungBrowser()) {
return 1;

@@ -771,3 +771,3 @@ }

if (!this.checkScreenSharingCapabilities()) {
var error = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED, 'You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0) or Electron. Detected client: ' + platform.getName());
var error = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED, 'You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: ' + platform.getName() + ' ' + platform.getVersion());
logger.error(error);

@@ -774,0 +774,0 @@ reject(error);

@@ -33,2 +33,6 @@ export declare class PlatformUtils {

*/
isEdgeBrowser(): boolean;
/**
* @hidden
*/
isAndroidBrowser(): boolean;

@@ -35,0 +39,0 @@ /**

@@ -56,2 +56,9 @@ "use strict";

*/
PlatformUtils.prototype.isEdgeBrowser = function () {
var version = (platform === null || platform === void 0 ? void 0 : platform.version) ? parseFloat(platform.version) : -1;
return platform.name === "Microsoft Edge" && version >= 80;
};
/**
* @hidden
*/
PlatformUtils.prototype.isAndroidBrowser = function () {

@@ -126,2 +133,3 @@ return platform.name === "Android Browser";

this.isElectron() ||
this.isEdgeBrowser() ||
(this.isSafariBrowser() && version >= 13));

@@ -128,0 +136,0 @@ };

@@ -44,3 +44,3 @@ {

"types": "lib/index.d.ts",
"version": "2.16.0"
"version": "2.16.1"
}

@@ -346,7 +346,7 @@ /*

// Accept: Chrome (desktop and Android), Firefox (desktop and Android), Opera (desktop and Android),
// Safari (OSX and iOS), Ionic (Android and iOS), Samsung Internet Browser (Android)
if (platform.isSafariBrowser() || platform.isChromeBrowser() || platform.isChromeMobileBrowser() ||
platform.isFirefoxBrowser() || platform.isFirefoxMobileBrowser() || platform.isOperaBrowser() ||
platform.isOperaMobileBrowser() || platform.isAndroidBrowser() || platform.isElectron() ||
platform.isSamsungBrowser()
// Safari (OSX and iOS), Edge Chromium (>= 80), Ionic (Android and iOS), Samsung Internet Browser (Android)
if (platform.isChromeBrowser() || platform.isChromeMobileBrowser() ||
platform.isFirefoxBrowser() || platform.isFirefoxMobileBrowser() || platform.isOperaBrowser() ||
platform.isOperaMobileBrowser() || platform.isSafariBrowser() || platform.isEdgeBrowser() ||
platform.isAndroidBrowser() || platform.isElectron() || platform.isSamsungBrowser()
) {

@@ -882,3 +882,3 @@ return 1;

if (!this.checkScreenSharingCapabilities()) {
const error = new OpenViduError(OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED, 'You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0) or Electron. Detected client: ' + platform.getName());
const error = new OpenViduError(OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED, 'You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: ' + platform.getName() + ' ' + platform.getVersion());
logger.error(error);

@@ -1052,2 +1052,2 @@ reject(error);

}
}

@@ -1168,5 +1168,5 @@ /*

platform.isChromeBrowser() || platform.isChromeMobileBrowser() || platform.isOperaBrowser() ||
platform.isOperaMobileBrowser() || platform.isElectron() || (platform.isSafariBrowser() && !platform.isIonicIos()) ||
platform.isAndroidBrowser() || platform.isSamsungBrowser() || platform.isIonicAndroid() ||
(platform.isIPhoneOrIPad() && platform.isIOSWithSafari())
platform.isOperaMobileBrowser() || platform.isEdgeBrowser() || platform.isElectron() ||
(platform.isSafariBrowser() && !platform.isIonicIos()) || platform.isAndroidBrowser() ||
platform.isSamsungBrowser() || platform.isIonicAndroid() || (platform.isIPhoneOrIPad() && platform.isIOSWithSafari())
) {

@@ -1173,0 +1173,0 @@ const obtainAndSendVideo = async () => {

@@ -63,2 +63,10 @@ import platform = require("platform");

*/
public isEdgeBrowser(): boolean {
const version = platform?.version ? parseFloat(platform.version) : -1;
return platform.name === "Microsoft Edge" && version >= 80;
}
/**
* @hidden
*/
public isAndroidBrowser(): boolean {

@@ -142,3 +150,2 @@ return platform.name === "Android Browser";

const version = platform?.version ? parseFloat(platform.version) : -1;
// Reject mobile devices

@@ -148,3 +155,2 @@ if (this.isMobileDevice()) {

}
return (

@@ -155,2 +161,3 @@ this.isChromeBrowser() ||

this.isElectron() ||
this.isEdgeBrowser() ||
(this.isSafariBrowser() && version >= 13)

@@ -157,0 +164,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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