mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: revert wrong imports
parent
0010ac1157
commit
3aae9a0ab1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue