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.1 to 2.16.2

openvidu-browser-2.16.2.tgz

3

lib/OpenVidu/LocalRecorder.js

@@ -30,3 +30,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
/**

@@ -46,2 +46,3 @@ * Easy recording of [[Stream]] objects straightaway from the browser. Initialized with [[OpenVidu.initLocalRecorder]] method

this.chunks = [];
platform = Platform_1.PlatformUtils.getInstance();
this.connectionId = (!!this.stream.connection) ? this.stream.connection.connectionId : 'default-connection';

@@ -48,0 +49,0 @@ this.id = this.stream.streamId + '_' + this.connectionId + '_localrecord';

@@ -50,3 +50,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
/**

@@ -83,2 +83,3 @@ * Entrypoint of OpenVidu Browser library.

this.ee = new EventEmitter();
platform = Platform_1.PlatformUtils.getInstance();
this.libraryVersion = packageJson.version;

@@ -85,0 +86,0 @@ logger.info("'OpenVidu' initialized");

@@ -49,3 +49,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
/**

@@ -80,2 +80,3 @@ * Packs local media streams. Participants can publish it to a session. Initialized with [[OpenVidu.initPublisher]] method

_this.accessDenied = false;
platform = Platform_1.PlatformUtils.getInstance();
_this.properties = properties;

@@ -82,0 +83,0 @@ _this.openvidu = openvidu;

@@ -55,3 +55,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
/**

@@ -106,2 +106,3 @@ * Represents each one of the media streams available in OpenVidu Server for certain session.

_this.volumeChangeEventEnabledOnce = false;
platform = Platform_1.PlatformUtils.getInstance();
_this.session = session;

@@ -642,3 +643,3 @@ if (options.hasOwnProperty('id')) {

}
if (this.isLocal && !!this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop) {
if (this.isLocal() && !!this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop) {
logger.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Publisher stream ' + this.streamId + 'will force a reconnection');

@@ -645,0 +646,0 @@ return true;

@@ -46,3 +46,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
/**

@@ -79,2 +79,3 @@ * Interface in charge of displaying the media streams in the HTML DOM. This wraps any [[Publisher]] and [[Subscriber]] object.

_this.lazyLaunchVideoElementCreatedEvent = false;
platform = Platform_1.PlatformUtils.getInstance();
_this.stream = stream;

@@ -81,0 +82,0 @@ _this.stream.streamManager = _this;

export declare class PlatformUtils {
private static instance;
private constructor();
protected static instance: PlatformUtils;
constructor();
static getInstance(): PlatformUtils;

@@ -69,2 +69,6 @@ isChromeBrowser(): boolean;

*/
isReactNative(): boolean;
/**
* @hidden
*/
canScreenShare(): boolean;

@@ -71,0 +75,0 @@ /**

@@ -9,4 +9,4 @@ "use strict";

PlatformUtils.getInstance = function () {
if (!PlatformUtils.instance) {
PlatformUtils.instance = new PlatformUtils();
if (!this.instance) {
this.instance = new PlatformUtils();
}

@@ -123,2 +123,8 @@ return PlatformUtils.instance;

*/
PlatformUtils.prototype.isReactNative = function () {
return false;
};
/**
* @hidden
*/
PlatformUtils.prototype.canScreenShare = function () {

@@ -125,0 +131,0 @@ var version = (platform === null || platform === void 0 ? void 0 : platform.version) ? parseFloat(platform.version) : -1;

@@ -44,3 +44,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
var WebRtcPeer = /** @class */ (function () {

@@ -54,2 +54,3 @@ function WebRtcPeer(configuration) {

this.candidategatheringdone = false;
platform = Platform_1.PlatformUtils.getInstance();
this.configuration.iceServers = (!!this.configuration.iceServers && this.configuration.iceServers.length > 0) ? this.configuration.iceServers : freeice();

@@ -56,0 +57,0 @@ this.pc = new RTCPeerConnection({ iceServers: this.configuration.iceServers });

@@ -29,3 +29,3 @@ "use strict";

*/
var platform = Platform_1.PlatformUtils.getInstance();
var platform;
var WebRtcStats = /** @class */ (function () {

@@ -64,2 +64,3 @@ function WebRtcStats(stream) {

};
platform = Platform_1.PlatformUtils.getInstance();
}

@@ -66,0 +67,0 @@ WebRtcStats.prototype.isEnabled = function () {

{
"author": "OpenVidu",
"dependencies": {
"@types/node": "14.14.7",
"@types/platform": "1.3.3",
"freeice": "2.2.2",

@@ -14,2 +12,4 @@ "hark": "1.2.3",

"devDependencies": {
"@types/node": "14.14.7",
"@types/platform": "1.3.3",
"browserify": "17.0.0",

@@ -45,3 +45,3 @@ "grunt": "1.3.0",

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

@@ -36,3 +36,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

@@ -63,2 +63,3 @@

constructor(private stream: Stream) {
platform = PlatformUtils.getInstance();
this.connectionId = (!!this.stream.connection) ? this.stream.connection.connectionId : 'default-connection';

@@ -65,0 +66,0 @@ this.id = this.stream.streamId + '_' + this.connectionId + '_localrecord';

@@ -60,3 +60,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

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

constructor() {
platform = PlatformUtils.getInstance();
this.libraryVersion = packageJson.version;

@@ -123,0 +124,0 @@ logger.info("'OpenVidu' initialized");

@@ -41,3 +41,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

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

super(new Stream((!!openvidu.session) ? openvidu.session : new Session(openvidu), { publisherProperties: properties, mediaConstraints: {} }), targEl);
platform = PlatformUtils.getInstance();
this.properties = properties;

@@ -102,0 +103,0 @@ this.openvidu = openvidu;

@@ -56,3 +56,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

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

super();
platform = PlatformUtils.getInstance();
this.openvidu = openvidu;

@@ -1207,3 +1208,3 @@ }

}
} else if (platform.isFirefoxBrowser() || platform.isFirefoxMobileBrowser() || platform.isIonicIos()) {
} else if (platform.isFirefoxBrowser() || platform.isFirefoxMobileBrowser() || platform.isIonicIos() || platform.isReactNative()) {
// Basic version for Firefox and Ionic iOS. They do not support stats

@@ -1210,0 +1211,0 @@ this.openvidu.sendRequest('videoData', {

@@ -48,3 +48,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

@@ -219,3 +219,3 @@ /**

super();
platform = PlatformUtils.getInstance();
this.session = session;

@@ -784,3 +784,3 @@

}
if (this.isLocal && !!this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop) {
if (this.isLocal() && !!this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop) {
logger.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Publisher stream ' + this.streamId + 'will force a reconnection');

@@ -787,0 +787,0 @@ return true;

@@ -36,3 +36,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

@@ -110,3 +110,3 @@ /**

super();
platform = PlatformUtils.getInstance();
this.stream = stream;

@@ -113,0 +113,0 @@ this.stream.streamManager = this;

import platform = require("platform");
export class PlatformUtils {
private static instance: PlatformUtils;
private constructor() {}
protected static instance: PlatformUtils;
constructor() {}
static getInstance(): PlatformUtils {
if (!PlatformUtils.instance) {
PlatformUtils.instance = new PlatformUtils();
if (!this.instance) {
this.instance = new PlatformUtils();
}

@@ -147,2 +147,9 @@ return PlatformUtils.instance;

*/
public isReactNative(): boolean {
return false;
}
/**
* @hidden
*/
public canScreenShare(): boolean {

@@ -149,0 +156,0 @@ const version = platform?.version ? parseFloat(platform.version) : -1;

@@ -30,3 +30,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

@@ -59,2 +59,3 @@

constructor(protected configuration: WebRtcPeerConfiguration) {
platform = PlatformUtils.getInstance();
this.configuration.iceServers = (!!this.configuration.iceServers && this.configuration.iceServers.length > 0) ? this.configuration.iceServers : freeice();

@@ -61,0 +62,0 @@

@@ -30,3 +30,3 @@ /*

*/
const platform: PlatformUtils = PlatformUtils.getInstance();
let platform: PlatformUtils;

@@ -67,3 +67,5 @@ export class WebRtcStats {

constructor(private stream: Stream) { }
constructor(private stream: Stream) {
platform = PlatformUtils.getInstance();
}

@@ -70,0 +72,0 @@ public isEnabled(): boolean {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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