openvidu-browser: revert wrong imports

pull/690/head
pabloFuente 2022-01-26 17:59:15 +01:00
parent 0010ac1157
commit 3aae9a0ab1
4 changed files with 6 additions and 9 deletions

View File

@ -40,7 +40,7 @@ import EventEmitter = require('wolfy87-eventemitter');
/**
* @hidden
*/
import RpcBuilder from '../OpenViduInternal/KurentoUtils/kurento-jsonrpc';
import RpcBuilder = require('../OpenViduInternal/KurentoUtils/kurento-jsonrpc');
/**
* @hidden

View File

@ -46,11 +46,11 @@ import { PlatformUtils } from '../OpenViduInternal/Utils/Platform';
/**
* @hidden
*/
import semverMajor from 'semver/functions/major';
import semverMajor = require('semver/functions/major');
/**
* @hidden
*/
import semverMinor from 'semver/functions/minor';
import semverMinor = require('semver/functions/minor');
/**
* @hidden

View File

@ -35,7 +35,7 @@ import { PlatformUtils } from '../OpenViduInternal/Utils/Platform';
/**
* @hidden
*/
import hark from 'hark';
import hark = require('hark');
/**
* @hidden
*/
@ -536,15 +536,12 @@ export class Stream {
* @hidden
*/
isSendScreen(): boolean {
if (!this.outboundStreamOpts) {
return false;
}
let screen = this.outboundStreamOpts.publisherProperties.videoSource === 'screen';
if (platform.isElectron()) {
screen = typeof this.outboundStreamOpts.publisherProperties.videoSource === 'string' &&
this.outboundStreamOpts.publisherProperties.videoSource.startsWith('screen:');
}
return screen;
return !!this.outboundStreamOpts && screen;
}
/**

View File

@ -15,7 +15,7 @@
*
*/
import freeice from 'freeice';
import freeice = require('freeice');
import { v4 as uuidv4 } from 'uuid';
import { ExceptionEventName } from '../Events/ExceptionEvent';
import { OpenViduLogger } from '../Logger/OpenViduLogger';