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
|
* @hidden
|
||||||
*/
|
*/
|
||||||
import RpcBuilder from '../OpenViduInternal/KurentoUtils/kurento-jsonrpc';
|
import RpcBuilder = require('../OpenViduInternal/KurentoUtils/kurento-jsonrpc');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue