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 * @hidden
*/ */
import RpcBuilder from '../OpenViduInternal/KurentoUtils/kurento-jsonrpc'; import RpcBuilder = require('../OpenViduInternal/KurentoUtils/kurento-jsonrpc');
/** /**
* @hidden * @hidden

View File

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

View File

@ -35,7 +35,7 @@ import { PlatformUtils } from '../OpenViduInternal/Utils/Platform';
/** /**
* @hidden * @hidden
*/ */
import hark from 'hark'; import hark = require('hark');
/** /**
* @hidden * @hidden
*/ */
@ -536,15 +536,12 @@ export class Stream {
* @hidden * @hidden
*/ */
isSendScreen(): boolean { isSendScreen(): boolean {
if (!this.outboundStreamOpts) {
return false;
}
let screen = this.outboundStreamOpts.publisherProperties.videoSource === 'screen'; let screen = this.outboundStreamOpts.publisherProperties.videoSource === 'screen';
if (platform.isElectron()) { if (platform.isElectron()) {
screen = typeof this.outboundStreamOpts.publisherProperties.videoSource === 'string' && screen = typeof this.outboundStreamOpts.publisherProperties.videoSource === 'string' &&
this.outboundStreamOpts.publisherProperties.videoSource.startsWith('screen:'); 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 { v4 as uuidv4 } from 'uuid';
import { ExceptionEventName } from '../Events/ExceptionEvent'; import { ExceptionEventName } from '../Events/ExceptionEvent';
import { OpenViduLogger } from '../Logger/OpenViduLogger'; import { OpenViduLogger } from '../Logger/OpenViduLogger';