mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: platform extra props only on OpenVidu.ts
parent
fb41e6c193
commit
5c60267aa7
|
@ -773,7 +773,7 @@ export class OpenVidu {
|
|||
}
|
||||
|
||||
private importIEAdapterJS(): void {
|
||||
const moduleSpecifier = 'https://cdn.temasys.io/adapterjs/0.15.x/adapter.screenshare.min.js';
|
||||
const moduleSpecifier = 'https://cdn.temasys.io/adapterjs/0.15.x/adapter.min.js';
|
||||
var script = document.createElement('script');
|
||||
script.src = moduleSpecifier;
|
||||
var ref = document.querySelector('script');
|
||||
|
|
|
@ -29,10 +29,7 @@ import { OpenViduError, OpenViduErrorName } from '../OpenViduInternal/Enums/Open
|
|||
import { VideoInsertMode } from '../OpenViduInternal/Enums/VideoInsertMode';
|
||||
|
||||
import platform = require('platform');
|
||||
platform['isIonicIos'] = (platform.product === 'iPhone' || platform.product === 'iPad') && platform.ua!!.indexOf('Safari') === -1;
|
||||
platform['isInternetExplorer'] = platform.name === 'IE' && platform.version !== undefined && parseInt(platform.version) >= 11;
|
||||
platform['isReactNative'] = navigator.product === 'ReactNative';
|
||||
declare const AdapterJS: any, attachMediaStream;
|
||||
declare const AdapterJS: any;
|
||||
|
||||
/**
|
||||
* Packs local media streams. Participants can publish it to a session. Initialized with [[OpenVidu.initPublisher]] method
|
||||
|
|
|
@ -34,9 +34,6 @@ import { OpenViduError, OpenViduErrorName } from '../OpenViduInternal/Enums/Open
|
|||
import EventEmitter = require('wolfy87-eventemitter');
|
||||
import hark = require('hark');
|
||||
import platform = require('platform');
|
||||
platform['isIonicIos'] = (platform.product === 'iPhone' || platform.product === 'iPad') && platform.ua!!.indexOf('Safari') === -1;
|
||||
platform['isInternetExplorer'] = platform.name === 'IE' && platform.version !== undefined && parseInt(platform.version) >= 11;
|
||||
platform['isReactNative'] = navigator.product === 'ReactNative';
|
||||
declare const AdapterJS: any;
|
||||
|
||||
|
||||
|
|
|
@ -25,9 +25,6 @@ import { VideoInsertMode } from '../OpenViduInternal/Enums/VideoInsertMode';
|
|||
|
||||
import EventEmitter = require('wolfy87-eventemitter');
|
||||
import platform = require('platform');
|
||||
platform['isIonicIos'] = (platform.product === 'iPhone' || platform.product === 'iPad') && platform.ua!!.indexOf('Safari') === -1;
|
||||
platform['isInternetExplorer'] = platform.name === 'IE' && platform.version !== undefined && parseInt(platform.version) >= 11;
|
||||
platform['isReactNative'] = navigator.product === 'ReactNative';
|
||||
declare const attachMediaStream;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue