mirror of https://github.com/OpenVidu/openvidu.git
parent
82d69bf05a
commit
863c0bf96a
|
@ -40,7 +40,7 @@ export declare class Connection {
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
sendIceCandidate(candidate: any): void;
|
sendIceCandidate(candidate: RTCIceCandidate): void;
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../src/OpenVidu/Connection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAGH,mCAAkC;AAOlC;;;GAGG;AACH;IAiCI;;OAEG;IACH,oBAAoB,OAAgB,EAAE,IAAwB;QAA1C,YAAO,GAAP,OAAO,CAAS;QARpC;;WAEG;QACH,aAAQ,GAAG,KAAK,CAAC;QAOb,IAAI,GAAG,GAAG,uBAAuB,CAAC;QAClC,IAAI,CAAC,CAAC,IAAI,EAAE;YACR,GAAG,IAAI,gCAAgC,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;SAC3D;aAAM;YACH,GAAG,IAAI,SAAS,CAAC;SACpB;QACD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAElB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,IAAI,CAAC,CAAC,IAAI,EAAE;YACR,uBAAuB;YACvB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;YAC5B,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;aAC7B;YACD,IAAI,IAAI,CAAC,OAAO,EAAE;gBACd,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxC;SACJ;QAED,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IAC7C,C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AU,EAAE,KAAI;gBAChB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,SAAS,EAAE,IAAI,CAAC,WAAW;gBAC3B,SAAS,EAAE,IAAI,CAAC,WAAW;gBAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;aAChC,CAAC;YACF,IAAM,MAAM,GAAG,IAAI,eAAM,CAAC,KAAI,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;YAEvD,KAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,IAAI,CAAC,2CAA2C,GAAG,IAAI,CAAC,YAAY,GAAG,0DAA0D,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC9K,CAAC;IAED;;OAEG;IACH,8BAAS,GAAT,UAAU,MAAc;QACpB,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,iCAAY,GAAZ,UAAa,QAAgB;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,4BAAO,GAAP;QACI,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,IAAI,CAAC,MAAM,CAAC;SACtB;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAEL,iBAAC;AAAD,CAAC,AAvID,IAuIC;AAvIY,gCAAU"}
|
|
@ -27,6 +27,14 @@ export declare class OpenVidu {
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
recorder: boolean;
|
recorder: boolean;
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
iceServers: RTCIceServer[];
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
role: string;
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -328,38 +328,40 @@ var OpenVidu = /** @class */ (function () {
|
||||||
}
|
}
|
||||||
if (!!publisherProperties.videoSource && typeof publisherProperties.videoSource === 'string') {
|
if (!!publisherProperties.videoSource && typeof publisherProperties.videoSource === 'string') {
|
||||||
if (publisherProperties.videoSource === 'screen') {
|
if (publisherProperties.videoSource === 'screen') {
|
||||||
if (platform.name !== 'Chrome' && platform.name !== 'Firefox') {
|
if (platform.name !== 'Chrome' && platform.name.indexOf('Firefox') === -1) {
|
||||||
var error = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED, 'You can only screen share in desktop Chrome and Firefox. Detected browser: ' + platform.name);
|
var error = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED, 'You can only screen share in desktop Chrome and Firefox. Detected browser: ' + platform.name);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!!_this.advancedConfiguration.screenShareChromeExtension) {
|
if (!!_this.advancedConfiguration.screenShareChromeExtension && !(platform.name.indexOf('Firefox') !== -1)) {
|
||||||
// Custom screen sharing extension for Chrome
|
// Custom screen sharing extension for Chrome
|
||||||
var extensionId = _this.advancedConfiguration.screenShareChromeExtension.split('/').pop().trim();
|
|
||||||
screenSharing.getChromeExtensionStatus(extensionId, function (status) {
|
|
||||||
if (status === 'installed-enabled') {
|
|
||||||
screenSharing.getScreenConstraints(function (error, screenConstraints) {
|
screenSharing.getScreenConstraints(function (error, screenConstraints) {
|
||||||
if (!!error && error === 'permission-denied') {
|
if (!!error || !!screenConstraints.mandatory && screenConstraints.mandatory.chromeMediaSource === 'screen') {
|
||||||
|
if (error === 'permission-denied' || error === 'PermissionDeniedError') {
|
||||||
var error_1 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_CAPTURE_DENIED, 'You must allow access to one window of your desktop');
|
var error_1 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_CAPTURE_DENIED, 'You must allow access to one window of your desktop');
|
||||||
console.error(error_1);
|
console.error(error_1);
|
||||||
reject(error_1);
|
reject(error_1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mediaConstraints.video = screenConstraints;
|
var extensionId = _this.advancedConfiguration.screenShareChromeExtension.split('/').pop().trim();
|
||||||
resolve(mediaConstraints);
|
screenSharing.getChromeExtensionStatus(extensionId, function (status) {
|
||||||
|
if (status === 'installed-disabled') {
|
||||||
|
var error_2 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_DISABLED, 'You must enable the screen extension');
|
||||||
|
console.error(error_2);
|
||||||
|
reject(error_2);
|
||||||
|
}
|
||||||
|
if (status === 'not-installed') {
|
||||||
|
var error_3 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED, _this.advancedConfiguration.screenShareChromeExtension);
|
||||||
|
console.error(error_3);
|
||||||
|
reject(error_3);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (status === 'installed-disabled') {
|
|
||||||
var error = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_DISABLED, 'You must enable the screen extension');
|
|
||||||
console.error(error);
|
|
||||||
reject(error);
|
|
||||||
}
|
}
|
||||||
if (status === 'not-installed') {
|
else {
|
||||||
var error = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED, _this.advancedConfiguration.screenShareChromeExtension);
|
mediaConstraints.video = screenConstraints;
|
||||||
console.error(error);
|
resolve(mediaConstraints);
|
||||||
reject(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -368,20 +370,22 @@ var OpenVidu = /** @class */ (function () {
|
||||||
screenSharingAuto.getScreenId(function (error, sourceId, screenConstraints) {
|
screenSharingAuto.getScreenId(function (error, sourceId, screenConstraints) {
|
||||||
if (!!error) {
|
if (!!error) {
|
||||||
if (error === 'not-installed') {
|
if (error === 'not-installed') {
|
||||||
var error_2 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED, 'https://chrome.google.com/webstore/detail/screen-capturing/ajhifddimkapgcifgcodmmfdlknahffk');
|
var extensionUrl = !!_this.advancedConfiguration.screenShareChromeExtension ? _this.advancedConfiguration.screenShareChromeExtension :
|
||||||
console.error(error_2);
|
'https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold';
|
||||||
reject(error_2);
|
var error_4 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED, extensionUrl);
|
||||||
}
|
|
||||||
else if (error === 'installed-disabled') {
|
|
||||||
var error_3 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_DISABLED, 'You must enable the screen extension');
|
|
||||||
console.error(error_3);
|
|
||||||
reject(error_3);
|
|
||||||
}
|
|
||||||
else if (error === 'permission-denied') {
|
|
||||||
var error_4 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_CAPTURE_DENIED, 'You must allow access to one window of your desktop');
|
|
||||||
console.error(error_4);
|
console.error(error_4);
|
||||||
reject(error_4);
|
reject(error_4);
|
||||||
}
|
}
|
||||||
|
else if (error === 'installed-disabled') {
|
||||||
|
var error_5 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_EXTENSION_DISABLED, 'You must enable the screen extension');
|
||||||
|
console.error(error_5);
|
||||||
|
reject(error_5);
|
||||||
|
}
|
||||||
|
else if (error === 'permission-denied') {
|
||||||
|
var error_6 = new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.SCREEN_CAPTURE_DENIED, 'You must allow access to one window of your desktop');
|
||||||
|
console.error(error_6);
|
||||||
|
reject(error_6);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mediaConstraints.video = screenConstraints.video;
|
mediaConstraints.video = screenConstraints.video;
|
||||||
|
@ -423,7 +427,7 @@ var OpenVidu = /** @class */ (function () {
|
||||||
onreconnected: this.reconnectedCallback.bind(this)
|
onreconnected: this.reconnectedCallback.bind(this)
|
||||||
},
|
},
|
||||||
rpc: {
|
rpc: {
|
||||||
requestTimeout: 15000,
|
requestTimeout: 10000,
|
||||||
participantJoined: this.session.onParticipantJoined.bind(this.session),
|
participantJoined: this.session.onParticipantJoined.bind(this.session),
|
||||||
participantPublished: this.session.onParticipantPublished.bind(this.session),
|
participantPublished: this.session.onParticipantPublished.bind(this.session),
|
||||||
participantUnpublished: this.session.onParticipantUnpublished.bind(this.session),
|
participantUnpublished: this.session.onParticipantUnpublished.bind(this.session),
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,9 @@ var Publisher = /** @class */ (function (_super) {
|
||||||
* @param value `true` to publish the audio stream, `false` to unpublish it
|
* @param value `true` to publish the audio stream, `false` to unpublish it
|
||||||
*/
|
*/
|
||||||
Publisher.prototype.publishAudio = function (value) {
|
Publisher.prototype.publishAudio = function (value) {
|
||||||
this.stream.getWebRtcPeer().audioEnabled = value;
|
this.stream.getMediaStream().getAudioTracks().forEach(function (track) {
|
||||||
|
track.enabled = value;
|
||||||
|
});
|
||||||
console.info("'Publisher' has " + (value ? 'published' : 'unpublished') + ' its audio stream');
|
console.info("'Publisher' has " + (value ? 'published' : 'unpublished') + ' its audio stream');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -73,7 +75,9 @@ var Publisher = /** @class */ (function (_super) {
|
||||||
* @param value `true` to publish the video stream, `false` to unpublish it
|
* @param value `true` to publish the video stream, `false` to unpublish it
|
||||||
*/
|
*/
|
||||||
Publisher.prototype.publishVideo = function (value) {
|
Publisher.prototype.publishVideo = function (value) {
|
||||||
this.stream.getWebRtcPeer().videoEnabled = value;
|
this.stream.getMediaStream().getVideoTracks().forEach(function (track) {
|
||||||
|
track.enabled = value;
|
||||||
|
});
|
||||||
console.info("'Publisher' has " + (value ? 'published' : 'unpublished') + ' its video stream');
|
console.info("'Publisher' has " + (value ? 'published' : 'unpublished') + ' its video stream');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -579,16 +579,17 @@ var Session = /** @class */ (function () {
|
||||||
var candidate = {
|
var candidate = {
|
||||||
candidate: msg.candidate,
|
candidate: msg.candidate,
|
||||||
sdpMid: msg.sdpMid,
|
sdpMid: msg.sdpMid,
|
||||||
sdpMLineIndex: msg.sdpMLineIndex
|
sdpMLineIndex: msg.sdpMLineIndex,
|
||||||
|
toJSON: function () {
|
||||||
|
return { candidate: msg.candidate };
|
||||||
|
}
|
||||||
};
|
};
|
||||||
this.getConnection(msg.endpointName, 'Connection not found for endpoint ' + msg.endpointName + '. Ice candidate will be ignored: ' + candidate)
|
this.getConnection(msg.endpointName, 'Connection not found for endpoint ' + msg.endpointName + '. Ice candidate will be ignored: ' + candidate)
|
||||||
.then(function (connection) {
|
.then(function (connection) {
|
||||||
var stream = connection.stream;
|
var stream = connection.stream;
|
||||||
stream.getWebRtcPeer().addIceCandidate(candidate, function (error) {
|
stream.getWebRtcPeer().addIceCandidate(candidate)["catch"](function (error) {
|
||||||
if (error) {
|
|
||||||
console.error('Error adding candidate for ' + stream.streamId
|
console.error('Error adding candidate for ' + stream.streamId
|
||||||
+ ' stream of endpoint ' + msg.endpointName + ': ' + error);
|
+ ' stream of endpoint ' + msg.endpointName + ': ' + error);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
})["catch"](function (openViduError) {
|
})["catch"](function (openViduError) {
|
||||||
console.error(openViduError);
|
console.error(openViduError);
|
||||||
|
@ -613,14 +614,16 @@ var Session = /** @class */ (function () {
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
Session.prototype.onLostConnection = function () {
|
Session.prototype.onLostConnection = function () {
|
||||||
if (!this.connection) {
|
/*if (!this.connection) {
|
||||||
|
|
||||||
console.warn('Not connected to session: if you are not debugging, this is probably a certificate error');
|
console.warn('Not connected to session: if you are not debugging, this is probably a certificate error');
|
||||||
var url = 'https://' + this.openvidu.getWsUri().split('wss://')[1].split('/openvidu')[0];
|
|
||||||
|
const url = 'https://' + this.openvidu.getWsUri().split('wss://')[1].split('/openvidu')[0];
|
||||||
if (window.confirm('If you are not debugging, this is probably a certificate error at \"' + url + '\"\n\nClick OK to navigate and accept it')) {
|
if (window.confirm('If you are not debugging, this is probably a certificate error at \"' + url + '\"\n\nClick OK to navigate and accept it')) {
|
||||||
location.assign(url + '/accept-certificate');
|
location.assign(url + '/accept-certificate');
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
console.warn('Lost connection in Session ' + this.sessionId);
|
console.warn('Lost connection in Session ' + this.sessionId);
|
||||||
if (!!this.sessionId && !this.connection.disposed) {
|
if (!!this.sessionId && !this.connection.disposed) {
|
||||||
this.leave(true, 'networkDisconnect');
|
this.leave(true, 'networkDisconnect');
|
||||||
|
@ -801,12 +804,28 @@ var Session = /** @class */ (function () {
|
||||||
this.sessionId = url.searchParams.get('sessionId');
|
this.sessionId = url.searchParams.get('sessionId');
|
||||||
var secret = url.searchParams.get('secret');
|
var secret = url.searchParams.get('secret');
|
||||||
var recorder = url.searchParams.get('recorder');
|
var recorder = url.searchParams.get('recorder');
|
||||||
|
var turnUsername = url.searchParams.get('turnUsername');
|
||||||
|
var turnCredential = url.searchParams.get('turnCredential');
|
||||||
|
var role = url.searchParams.get('role');
|
||||||
if (!!secret) {
|
if (!!secret) {
|
||||||
this.openvidu.secret = secret;
|
this.openvidu.secret = secret;
|
||||||
}
|
}
|
||||||
if (!!recorder) {
|
if (!!recorder) {
|
||||||
this.openvidu.recorder = true;
|
this.openvidu.recorder = true;
|
||||||
}
|
}
|
||||||
|
if (!!turnUsername && !!turnCredential) {
|
||||||
|
var stunUrl = 'stun:' + url.hostname + ':3478';
|
||||||
|
var turnUrl1 = 'turn:' + url.hostname + ':3478';
|
||||||
|
var turnUrl2 = turnUrl1 + '?transport=tcp';
|
||||||
|
this.openvidu.iceServers = [
|
||||||
|
{ urls: [stunUrl] },
|
||||||
|
{ urls: [turnUrl1, turnUrl2], username: turnUsername, credential: turnCredential }
|
||||||
|
];
|
||||||
|
console.log('TURN temp credentials [' + turnUsername + ':' + turnCredential + ']');
|
||||||
|
}
|
||||||
|
if (!!role) {
|
||||||
|
this.openvidu.role = role;
|
||||||
|
}
|
||||||
this.openvidu.wsUri = 'wss://' + url.host + '/openvidu';
|
this.openvidu.wsUri = 'wss://' + url.host + '/openvidu';
|
||||||
};
|
};
|
||||||
return Session;
|
return Session;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,7 @@ import { Session } from './Session';
|
||||||
import { StreamManager } from './StreamManager';
|
import { StreamManager } from './StreamManager';
|
||||||
import { InboundStreamOptions } from '../OpenViduInternal/Interfaces/Private/InboundStreamOptions';
|
import { InboundStreamOptions } from '../OpenViduInternal/Interfaces/Private/InboundStreamOptions';
|
||||||
import { OutboundStreamOptions } from '../OpenViduInternal/Interfaces/Private/OutboundStreamOptions';
|
import { OutboundStreamOptions } from '../OpenViduInternal/Interfaces/Private/OutboundStreamOptions';
|
||||||
|
import { WebRtcPeer } from '../OpenViduInternal/WebRtcPeer/WebRtcPeer';
|
||||||
import EventEmitter = require('wolfy87-eventemitter');
|
import EventEmitter = require('wolfy87-eventemitter');
|
||||||
/**
|
/**
|
||||||
* Represents each one of the media streams available in OpenVidu Server for certain session.
|
* Represents each one of the media streams available in OpenVidu Server for certain session.
|
||||||
|
@ -90,7 +91,7 @@ export declare class Stream {
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
getWebRtcPeer(): any;
|
getWebRtcPeer(): WebRtcPeer;
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
@ -151,13 +152,26 @@ export declare class Stream {
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
disableSpeakingEvents(): void;
|
disableSpeakingEvents(): void;
|
||||||
private initWebRtcPeerSend;
|
|
||||||
private initWebRtcPeerReceive;
|
|
||||||
private processSdpAnswer;
|
|
||||||
private initWebRtcStats;
|
|
||||||
private stopWebRtcStats;
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
isLocal(): boolean;
|
isLocal(): boolean;
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
getSelectedIceCandidate(): Promise<any>;
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
getRemoteIceCandidateList(): RTCIceCandidate[];
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
getLocalIceCandidateList(): RTCIceCandidate[];
|
||||||
|
private initWebRtcPeerSend;
|
||||||
|
private initWebRtcPeerReceive;
|
||||||
|
private remotePeerSuccesfullyEstablished;
|
||||||
|
private initWebRtcStats;
|
||||||
|
private stopWebRtcStats;
|
||||||
|
private getIceServersConf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,10 +16,11 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
var WebRtcPeer_1 = require("../OpenViduInternal/WebRtcPeer/WebRtcPeer");
|
||||||
var WebRtcStats_1 = require("../OpenViduInternal/WebRtcStats/WebRtcStats");
|
var WebRtcStats_1 = require("../OpenViduInternal/WebRtcStats/WebRtcStats");
|
||||||
var PublisherSpeakingEvent_1 = require("../OpenViduInternal/Events/PublisherSpeakingEvent");
|
var PublisherSpeakingEvent_1 = require("../OpenViduInternal/Events/PublisherSpeakingEvent");
|
||||||
var EventEmitter = require("wolfy87-eventemitter");
|
var EventEmitter = require("wolfy87-eventemitter");
|
||||||
var kurentoUtils = require("../OpenViduInternal/KurentoUtils/kurento-utils-js");
|
var hark = require("hark");
|
||||||
/**
|
/**
|
||||||
* Represents each one of the media streams available in OpenVidu Server for certain session.
|
* Represents each one of the media streams available in OpenVidu Server for certain session.
|
||||||
* Each [[Publisher]] and [[Subscriber]] has an attribute of type Stream, as they give access
|
* Each [[Publisher]] and [[Subscriber]] has an attribute of type Stream, as they give access
|
||||||
|
@ -59,17 +60,14 @@ var Stream = /** @class */ (function () {
|
||||||
this.outboundStreamOpts = options;
|
this.outboundStreamOpts = options;
|
||||||
if (this.isSendVideo()) {
|
if (this.isSendVideo()) {
|
||||||
if (this.isSendScreen()) {
|
if (this.isSendScreen()) {
|
||||||
this.streamId = 'SCREEN';
|
|
||||||
this.typeOfVideo = 'SCREEN';
|
this.typeOfVideo = 'SCREEN';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.streamId = 'CAMERA';
|
|
||||||
this.typeOfVideo = 'CAMERA';
|
this.typeOfVideo = 'CAMERA';
|
||||||
}
|
}
|
||||||
this.frameRate = this.outboundStreamOpts.publisherProperties.frameRate;
|
this.frameRate = this.outboundStreamOpts.publisherProperties.frameRate;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.streamId = 'MICRO';
|
|
||||||
delete this.typeOfVideo;
|
delete this.typeOfVideo;
|
||||||
}
|
}
|
||||||
this.hasAudio = this.isSendAudio();
|
this.hasAudio = this.isSendAudio();
|
||||||
|
@ -109,7 +107,7 @@ var Stream = /** @class */ (function () {
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
Stream.prototype.getRTCPeerConnection = function () {
|
Stream.prototype.getRTCPeerConnection = function () {
|
||||||
return this.webRtcPeer.peerConnection;
|
return this.webRtcPeer.pc;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
|
@ -228,7 +226,7 @@ var Stream = /** @class */ (function () {
|
||||||
var harkOptions = this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions || {};
|
var harkOptions = this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions || {};
|
||||||
harkOptions.interval = (typeof harkOptions.interval === 'number') ? harkOptions.interval : 50;
|
harkOptions.interval = (typeof harkOptions.interval === 'number') ? harkOptions.interval : 50;
|
||||||
harkOptions.threshold = (typeof harkOptions.threshold === 'number') ? harkOptions.threshold : -50;
|
harkOptions.threshold = (typeof harkOptions.threshold === 'number') ? harkOptions.threshold : -50;
|
||||||
this.speechEvent = kurentoUtils.WebRtcPeer.hark(this.mediaStream, harkOptions);
|
this.speechEvent = hark(this.mediaStream, harkOptions);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -266,6 +264,35 @@ var Stream = /** @class */ (function () {
|
||||||
this.speechEvent.stop();
|
this.speechEvent.stop();
|
||||||
this.speechEvent = undefined;
|
this.speechEvent = undefined;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
Stream.prototype.isLocal = function () {
|
||||||
|
// inbound options undefined and outbound options defined
|
||||||
|
return (!this.inboundStreamOpts && !!this.outboundStreamOpts);
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
Stream.prototype.getSelectedIceCandidate = function () {
|
||||||
|
var _this = this;
|
||||||
|
return new Promise(function (resolve, reject) {
|
||||||
|
_this.webRtcStats.getSelectedIceCandidateInfo()
|
||||||
|
.then(function (report) { return resolve(report); })["catch"](function (error) { return reject(error); });
|
||||||
|
});
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
Stream.prototype.getRemoteIceCandidateList = function () {
|
||||||
|
return this.webRtcPeer.remoteCandidatesQueue;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
Stream.prototype.getLocalIceCandidateList = function () {
|
||||||
|
return this.webRtcPeer.localCandidatesQueue;
|
||||||
|
};
|
||||||
/* Private methods */
|
/* Private methods */
|
||||||
Stream.prototype.initWebRtcPeerSend = function () {
|
Stream.prototype.initWebRtcPeerSend = function () {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
@ -275,15 +302,13 @@ var Stream = /** @class */ (function () {
|
||||||
video: _this.isSendVideo()
|
video: _this.isSendVideo()
|
||||||
};
|
};
|
||||||
var options = {
|
var options = {
|
||||||
videoStream: _this.mediaStream,
|
mediaStream: _this.mediaStream,
|
||||||
mediaConstraints: userMediaConstraints,
|
mediaConstraints: userMediaConstraints,
|
||||||
onicecandidate: _this.connection.sendIceCandidate.bind(_this.connection),
|
onicecandidate: _this.connection.sendIceCandidate.bind(_this.connection),
|
||||||
iceServers: _this.session.openvidu.advancedConfiguration.iceServers
|
iceServers: _this.getIceServersConf(),
|
||||||
|
simulcast: false
|
||||||
};
|
};
|
||||||
var successCallback = function (error, sdpOfferParam, wp) {
|
var successCallback = function (sdpOfferParam) {
|
||||||
if (error) {
|
|
||||||
reject(new Error('(publish) SDP offer error: ' + JSON.stringify(error)));
|
|
||||||
}
|
|
||||||
console.debug('Sending SDP offer to publish as '
|
console.debug('Sending SDP offer to publish as '
|
||||||
+ _this.streamId, sdpOfferParam);
|
+ _this.streamId, sdpOfferParam);
|
||||||
_this.session.openvidu.sendRequest('publishVideo', {
|
_this.session.openvidu.sendRequest('publishVideo', {
|
||||||
|
@ -298,15 +323,15 @@ var Stream = /** @class */ (function () {
|
||||||
reject('Error on publishVideo: ' + JSON.stringify(error));
|
reject('Error on publishVideo: ' + JSON.stringify(error));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_this.processSdpAnswer(response.sdpAnswer)
|
_this.webRtcPeer.processAnswer(response.sdpAnswer)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
_this.streamId = response.id;
|
||||||
_this.isLocalStreamPublished = true;
|
_this.isLocalStreamPublished = true;
|
||||||
if (_this.displayMyRemote()) {
|
if (_this.displayMyRemote()) {
|
||||||
// If remote now we can set the srcObject value of video elements
|
_this.remotePeerSuccesfullyEstablished();
|
||||||
// 'streamPlaying' event will be triggered
|
|
||||||
_this.updateMediaStreamInVideos();
|
|
||||||
}
|
}
|
||||||
_this.ee.emitEvent('stream-created-by-publisher');
|
_this.ee.emitEvent('stream-created-by-publisher');
|
||||||
|
_this.initWebRtcStats();
|
||||||
resolve();
|
resolve();
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
|
@ -316,21 +341,16 @@ var Stream = /** @class */ (function () {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
if (_this.displayMyRemote()) {
|
if (_this.displayMyRemote()) {
|
||||||
_this.webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerSendrecv(options, function (err) {
|
_this.webRtcPeer = new WebRtcPeer_1.WebRtcPeerSendrecv(options);
|
||||||
if (err) {
|
|
||||||
reject(err);
|
|
||||||
}
|
|
||||||
_this.webRtcPeer.generateOffer(successCallback);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_this.webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerSendonly(options, function (error) {
|
_this.webRtcPeer = new WebRtcPeer_1.WebRtcPeerSendonly(options);
|
||||||
if (error) {
|
|
||||||
reject(error);
|
|
||||||
}
|
}
|
||||||
_this.webRtcPeer.generateOffer(successCallback);
|
_this.webRtcPeer.generateOffer().then(function (offer) {
|
||||||
|
successCallback(offer);
|
||||||
|
})["catch"](function (error) {
|
||||||
|
reject(new Error('(publish) SDP offer error: ' + JSON.stringify(error)));
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Stream.prototype.initWebRtcPeerReceive = function () {
|
Stream.prototype.initWebRtcPeerReceive = function () {
|
||||||
|
@ -343,12 +363,11 @@ var Stream = /** @class */ (function () {
|
||||||
console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer", offerConstraints);
|
console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer", offerConstraints);
|
||||||
var options = {
|
var options = {
|
||||||
onicecandidate: _this.connection.sendIceCandidate.bind(_this.connection),
|
onicecandidate: _this.connection.sendIceCandidate.bind(_this.connection),
|
||||||
mediaConstraints: offerConstraints
|
mediaConstraints: offerConstraints,
|
||||||
|
iceServers: _this.getIceServersConf(),
|
||||||
|
simulcast: false
|
||||||
};
|
};
|
||||||
var successCallback = function (error, sdpOfferParam, wp) {
|
var successCallback = function (sdpOfferParam) {
|
||||||
if (error) {
|
|
||||||
reject(new Error('(subscribe) SDP offer error: ' + JSON.stringify(error)));
|
|
||||||
}
|
|
||||||
console.debug('Sending SDP offer to subscribe to '
|
console.debug('Sending SDP offer to subscribe to '
|
||||||
+ _this.streamId, sdpOfferParam);
|
+ _this.streamId, sdpOfferParam);
|
||||||
_this.session.openvidu.sendRequest('receiveVideoFrom', {
|
_this.session.openvidu.sendRequest('receiveVideoFrom', {
|
||||||
|
@ -359,7 +378,9 @@ var Stream = /** @class */ (function () {
|
||||||
reject(new Error('Error on recvVideoFrom: ' + JSON.stringify(error)));
|
reject(new Error('Error on recvVideoFrom: ' + JSON.stringify(error)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_this.processSdpAnswer(response.sdpAnswer).then(function () {
|
_this.webRtcPeer.processAnswer(response.sdpAnswer).then(function () {
|
||||||
|
_this.remotePeerSuccesfullyEstablished();
|
||||||
|
_this.initWebRtcStats();
|
||||||
resolve();
|
resolve();
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
|
@ -367,42 +388,24 @@ var Stream = /** @class */ (function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
_this.webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerRecvonly(options, function (error) {
|
_this.webRtcPeer = new WebRtcPeer_1.WebRtcPeerRecvonly(options);
|
||||||
if (error) {
|
_this.webRtcPeer.generateOffer()
|
||||||
reject(error);
|
.then(function (offer) {
|
||||||
}
|
successCallback(offer);
|
||||||
_this.webRtcPeer.generateOffer(successCallback);
|
})["catch"](function (error) {
|
||||||
|
reject(new Error('(subscribe) SDP offer error: ' + JSON.stringify(error)));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Stream.prototype.processSdpAnswer = function (sdpAnswer) {
|
Stream.prototype.remotePeerSuccesfullyEstablished = function () {
|
||||||
var _this = this;
|
this.mediaStream = this.webRtcPeer.pc.getRemoteStreams()[0];
|
||||||
return new Promise(function (resolve, reject) {
|
console.debug('Peer remote stream', this.mediaStream);
|
||||||
var answer = new RTCSessionDescription({
|
if (!!this.mediaStream) {
|
||||||
type: 'answer',
|
this.ee.emitEvent('mediastream-updated');
|
||||||
sdp: sdpAnswer
|
if (!this.displayMyRemote() && !!this.mediaStream.getAudioTracks()[0] && this.session.speakingEventsEnabled) {
|
||||||
});
|
this.enableSpeakingEvents();
|
||||||
console.debug(_this.streamId + ': set peer connection with recvd SDP answer', sdpAnswer);
|
|
||||||
var streamId = _this.streamId;
|
|
||||||
var peerConnection = _this.webRtcPeer.peerConnection;
|
|
||||||
peerConnection.setRemoteDescription(answer, function () {
|
|
||||||
// Update remote MediaStream object except when local stream
|
|
||||||
if (!_this.isLocal() || _this.displayMyRemote()) {
|
|
||||||
_this.mediaStream = peerConnection.getRemoteStreams()[0];
|
|
||||||
console.debug('Peer remote stream', _this.mediaStream);
|
|
||||||
if (!!_this.mediaStream) {
|
|
||||||
_this.ee.emitEvent('mediastream-updated');
|
|
||||||
if (!!_this.mediaStream.getAudioTracks()[0] && _this.session.speakingEventsEnabled) {
|
|
||||||
_this.enableSpeakingEvents();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
_this.initWebRtcStats();
|
|
||||||
resolve();
|
|
||||||
}, function (error) {
|
|
||||||
reject(new Error(_this.streamId + ': Error setting SDP to the peer connection: ' + JSON.stringify(error)));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
Stream.prototype.initWebRtcStats = function () {
|
Stream.prototype.initWebRtcStats = function () {
|
||||||
this.webRtcStats = new WebRtcStats_1.WebRtcStats(this);
|
this.webRtcStats = new WebRtcStats_1.WebRtcStats(this);
|
||||||
|
@ -413,12 +416,20 @@ var Stream = /** @class */ (function () {
|
||||||
this.webRtcStats.stopWebRtcStats();
|
this.webRtcStats.stopWebRtcStats();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
Stream.prototype.getIceServersConf = function () {
|
||||||
* @hidden
|
var returnValue;
|
||||||
*/
|
if (!!this.session.openvidu.advancedConfiguration.iceServers) {
|
||||||
Stream.prototype.isLocal = function () {
|
returnValue = this.session.openvidu.advancedConfiguration.iceServers === 'freeice' ?
|
||||||
// inbound options undefined and outbound options defined
|
undefined :
|
||||||
return (!this.inboundStreamOpts && !!this.outboundStreamOpts);
|
this.session.openvidu.advancedConfiguration.iceServers;
|
||||||
|
}
|
||||||
|
else if (this.session.openvidu.iceServers) {
|
||||||
|
returnValue = this.session.openvidu.iceServers;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
returnValue = undefined;
|
||||||
|
}
|
||||||
|
return returnValue;
|
||||||
};
|
};
|
||||||
return Stream;
|
return Stream;
|
||||||
}());
|
}());
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,8 +1,12 @@
|
||||||
|
/**
|
||||||
|
* See [[OpenVidu.setAdvancedConfiguration]]
|
||||||
|
*/
|
||||||
export interface OpenViduAdvancedConfiguration {
|
export interface OpenViduAdvancedConfiguration {
|
||||||
/**
|
/**
|
||||||
* Array of [RTCIceServer](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer) to be used by OpenVidu Browser instead of the default free ice server array (got from [freeice](https://github.com/DamonOehlman/freeice) library)
|
* Array of [RTCIceServer](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer) to be used by OpenVidu Browser. By default OpenVidu will generate the required credentials to use the COTURN server hosted along OpenVidu Server
|
||||||
|
* You can also set this property to string 'freeice' to force the use of free STUN servers instead (got thanks to [freeice](https://github.com/DamonOehlman/freeice) library).
|
||||||
*/
|
*/
|
||||||
iceServers?: RTCIceServer[];
|
iceServers?: RTCIceServer[] | string;
|
||||||
/**
|
/**
|
||||||
* URL to a custom screen share extension for Chrome (always based on ours: [openvidu-screen-sharing-chrome-extension](https://github.com/OpenVidu/openvidu-screen-sharing-chrome-extension)) to be used instead of the default one.
|
* URL to a custom screen share extension for Chrome (always based on ours: [openvidu-screen-sharing-chrome-extension](https://github.com/OpenVidu/openvidu-screen-sharing-chrome-extension)) to be used instead of the default one.
|
||||||
* Must be something like this: `https://chrome.google.com/webstore/detail/YOUR_WEBSTORE_EXTENSION_NAME/YOUR_EXTENSION_ID`
|
* Must be something like this: `https://chrome.google.com/webstore/detail/YOUR_WEBSTORE_EXTENSION_NAME/YOUR_EXTENSION_ID`
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
window.getScreenId = function (callback) {
|
window.getScreenId = function (callback, custom_parameter) {
|
||||||
|
if (navigator.userAgent.indexOf('Edge') !== -1 && (!!navigator.msSaveOrOpenBlob || !!navigator.msSaveBlob)) {
|
||||||
|
callback({
|
||||||
|
video: true
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!!navigator.mozGetUserMedia) {
|
if (!!navigator.mozGetUserMedia) {
|
||||||
callback(null, 'firefox', {
|
callback(null, 'firefox', {
|
||||||
video: {
|
video: {
|
||||||
|
@ -17,7 +23,7 @@ window.getScreenId = function (callback) {
|
||||||
callback('permission-denied');
|
callback('permission-denied');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
callback(null, event.data.chromeMediaSourceId, getScreenConstraints(null, event.data.chromeMediaSourceId));
|
callback(null, event.data.chromeMediaSourceId, getScreenConstraints(null, event.data.chromeMediaSourceId, event.data.canRequestAudioTrack));
|
||||||
}
|
}
|
||||||
window.removeEventListener('message', onIFrameCallback);
|
window.removeEventListener('message', onIFrameCallback);
|
||||||
}
|
}
|
||||||
|
@ -26,9 +32,16 @@ window.getScreenId = function (callback) {
|
||||||
window.removeEventListener('message', onIFrameCallback);
|
window.removeEventListener('message', onIFrameCallback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!custom_parameter) {
|
||||||
setTimeout(postGetSourceIdMessage, 100);
|
setTimeout(postGetSourceIdMessage, 100);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setTimeout(function () {
|
||||||
|
postGetSourceIdMessage(custom_parameter);
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
function getScreenConstraints(error, sourceId) {
|
function getScreenConstraints(error, sourceId, canRequestAudioTrack) {
|
||||||
var screen_constraints = {
|
var screen_constraints = {
|
||||||
audio: false,
|
audio: false,
|
||||||
video: {
|
video: {
|
||||||
|
@ -40,25 +53,64 @@ function getScreenConstraints(error, sourceId) {
|
||||||
optional: []
|
optional: []
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if (!!canRequestAudioTrack) {
|
||||||
|
screen_constraints.audio = {
|
||||||
|
mandatory: {
|
||||||
|
chromeMediaSource: error ? 'screen' : 'desktop',
|
||||||
|
},
|
||||||
|
optional: []
|
||||||
|
};
|
||||||
|
}
|
||||||
if (sourceId) {
|
if (sourceId) {
|
||||||
screen_constraints.video.mandatory.chromeMediaSourceId = sourceId;
|
screen_constraints.video.mandatory.chromeMediaSourceId = sourceId;
|
||||||
|
if (screen_constraints.audio && screen_constraints.audio.mandatory) {
|
||||||
|
screen_constraints.audio.mandatory.chromeMediaSourceId = sourceId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return screen_constraints;
|
return screen_constraints;
|
||||||
}
|
}
|
||||||
var iframe;
|
function postGetSourceIdMessage(custom_parameter) {
|
||||||
function postGetSourceIdMessage() {
|
|
||||||
if (!iframe) {
|
if (!iframe) {
|
||||||
loadIFrame(postGetSourceIdMessage);
|
loadIFrame(function () {
|
||||||
|
postGetSourceIdMessage(custom_parameter);
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!iframe.isLoaded) {
|
if (!iframe.isLoaded) {
|
||||||
setTimeout(postGetSourceIdMessage, 100);
|
setTimeout(function () {
|
||||||
|
postGetSourceIdMessage(custom_parameter);
|
||||||
|
}, 100);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!custom_parameter) {
|
||||||
iframe.contentWindow.postMessage({
|
iframe.contentWindow.postMessage({
|
||||||
captureSourceId: true
|
captureSourceId: true
|
||||||
}, '*');
|
}, '*');
|
||||||
}
|
}
|
||||||
|
else if (!!custom_parameter.forEach) {
|
||||||
|
iframe.contentWindow.postMessage({
|
||||||
|
captureCustomSourceId: custom_parameter
|
||||||
|
}, '*');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
iframe.contentWindow.postMessage({
|
||||||
|
captureSourceIdWithAudio: true
|
||||||
|
}, '*');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var iframe;
|
||||||
|
window.getScreenConstraints = function (callback) {
|
||||||
|
loadIFrame(function () {
|
||||||
|
getScreenId(function (error, sourceId, screen_constraints) {
|
||||||
|
if (!screen_constraints) {
|
||||||
|
screen_constraints = {
|
||||||
|
video: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
callback(error, screen_constraints.video);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
function loadIFrame(loadCallback) {
|
function loadIFrame(loadCallback) {
|
||||||
if (iframe) {
|
if (iframe) {
|
||||||
loadCallback();
|
loadCallback();
|
||||||
|
@ -69,7 +121,7 @@ function loadIFrame(loadCallback) {
|
||||||
iframe.isLoaded = true;
|
iframe.isLoaded = true;
|
||||||
loadCallback();
|
loadCallback();
|
||||||
};
|
};
|
||||||
iframe.src = 'https://www.webrtc-experiment.com/getSourceId/';
|
iframe.src = 'https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/';
|
||||||
iframe.style.display = 'none';
|
iframe.style.display = 'none';
|
||||||
(document.body || document.documentElement).appendChild(iframe);
|
(document.body || document.documentElement).appendChild(iframe);
|
||||||
}
|
}
|
||||||
|
@ -84,9 +136,9 @@ window.getChromeExtensionStatus = function (callback) {
|
||||||
return;
|
return;
|
||||||
if (event.data.chromeExtensionStatus) {
|
if (event.data.chromeExtensionStatus) {
|
||||||
callback(event.data.chromeExtensionStatus);
|
callback(event.data.chromeExtensionStatus);
|
||||||
}
|
|
||||||
window.removeEventListener('message', onIFrameCallback);
|
window.removeEventListener('message', onIFrameCallback);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
setTimeout(postGetChromeExtensionStatusMessage, 100);
|
setTimeout(postGetChromeExtensionStatusMessage, 100);
|
||||||
};
|
};
|
||||||
function postGetChromeExtensionStatusMessage() {
|
function postGetChromeExtensionStatusMessage() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"Screen-Capturing-Auto.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/ScreenSharing/Screen-Capturing-Auto.js"],"names":[],"mappings":"AAuBA,MAAM,CAAC,WAAW,GAAG,UAAU,QAAQ;IAInC,IAAI,CAAC,CAAC,SAAS,CAAC,eAAe,EAAE;QAC7B,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE;YACtB,KAAK,EAAE;gBACH,cAAc,EAAE,QAAQ;gBACxB,WAAW,EAAE,QAAQ;aACxB;SACJ,CAAC,CAAC;QACH,OAAO;KACV;IAED,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAErD,0BAA0B,KAAK;QAC3B,IAAI,CAAC,KAAK,CAAC,IAAI;YAAE,OAAO;QAExB,IAAI,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAChC,IAAI,KAAK,CAAC,IAAI,CAA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,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;SAC9C;QAGD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF;IACI,IAAI,CAAC,MAAM,EAAE;QACT,UAAU,CAAC,mCAAmC,CAAC,CAAC;QAChD,OAAO;KACV;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QAClB,UAAU,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAC;QACrD,OAAO;KACV;IAED,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC;QAC7B,wBAAwB,EAAE,IAAI;KACjC,EAAE,GAAG,CAAC,CAAC;AACZ,CAAC;AAED,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
{"version":3,"file":"Screen-Capturing-Auto.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/ScreenSharing/Screen-Capturing-Auto.js"],"names":[],"mappings":"AAyBA,MAAM,CAAC,WAAW,GAAG,UAAU,QAAQ,EAAE,gBAAgB;IACrD,IAAI,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,gBAAgB,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;QAExG,QAAQ,CAAC;YACL,KAAK,EAAE,IAAI;SACd,CAAC,CAAC;QACH,OAAO;KACV;IAKD,IAAI,CAAC,CAAC,SAAS,CAAC,eAAe,EAAE;QAC7B,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE;YACtB,KAAK,EAAE;gBACH,cAAc,EAAE,QAAQ;gBACxB,WAAW,EAAE,QAAQ;aACxB;SACJ,CAAC,CAAC;QACH,OAAO;KACV;IAED,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAErD,0BA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C9B,OAAO;KACV;IAED,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAErD,0BAA0B,KAAK;QAC3B,IAAI,CAAC,KAAK,CAAC,IAAI;YAAE,OAAO;QAExB,IAAI,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAClC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;YAG3C,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;SAC3D;IACL,CAAC;IAED,UAAU,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF;IACI,IAAI,CAAC,MAAM,EAAE;QACT,UAAU,CAAC,mCAAmC,CAAC,CAAC;QAChD,OAAO;KACV;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QAClB,UAAU,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAC;QACrD,OAAO;KACV;IAED,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC;QAC7B,wBAAwB,EAAE,IAAI;KACjC,EAAE,GAAG,CAAC,CAAC;AACZ,CAAC;AAED,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@ -1,4 +1,5 @@
|
||||||
var chromeMediaSource = 'screen';
|
var chromeMediaSource = 'screen';
|
||||||
|
var sourceId;
|
||||||
var screenCallback;
|
var screenCallback;
|
||||||
var isFirefox = typeof window.InstallTrigger !== 'undefined';
|
var isFirefox = typeof window.InstallTrigger !== 'undefined';
|
||||||
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
|
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
|
||||||
|
@ -11,7 +12,6 @@ window.addEventListener('message', function (event) {
|
||||||
});
|
});
|
||||||
function onMessageCallback(data) {
|
function onMessageCallback(data) {
|
||||||
if (data == 'PermissionDeniedError') {
|
if (data == 'PermissionDeniedError') {
|
||||||
chromeMediaSource = 'PermissionDeniedError';
|
|
||||||
if (screenCallback)
|
if (screenCallback)
|
||||||
return screenCallback('PermissionDeniedError');
|
return screenCallback('PermissionDeniedError');
|
||||||
else
|
else
|
||||||
|
@ -21,21 +21,21 @@ function onMessageCallback(data) {
|
||||||
chromeMediaSource = 'desktop';
|
chromeMediaSource = 'desktop';
|
||||||
}
|
}
|
||||||
if (data.sourceId && screenCallback) {
|
if (data.sourceId && screenCallback) {
|
||||||
screenCallback(sourceId = data.sourceId);
|
screenCallback(sourceId = data.sourceId, data.canRequestAudioTrack === true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function isChromeExtensionAvailable(callback) {
|
function isChromeExtensionAvailable(callback) {
|
||||||
if (isFirefox)
|
if (!callback)
|
||||||
return callback(false);
|
return;
|
||||||
if (chromeMediaSource == 'desktop')
|
if (chromeMediaSource == 'desktop')
|
||||||
return callback('isFirefox');
|
return callback(true);
|
||||||
window.postMessage('are-you-there', '*');
|
window.postMessage('are-you-there', '*');
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (chromeMediaSource == 'screen') {
|
if (chromeMediaSource == 'screen') {
|
||||||
callback('unavailable');
|
callback(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
callback('available');
|
callback(true);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
function getSourceId(callback) {
|
function getSourceId(callback) {
|
||||||
|
@ -46,12 +46,32 @@ function getSourceId(callback) {
|
||||||
screenCallback = callback;
|
screenCallback = callback;
|
||||||
window.postMessage('get-sourceId', '*');
|
window.postMessage('get-sourceId', '*');
|
||||||
}
|
}
|
||||||
|
function getCustomSourceId(arr, callback) {
|
||||||
|
if (!arr || !arr.forEach)
|
||||||
|
throw '"arr" parameter is mandatory and it must be an array.';
|
||||||
|
if (!callback)
|
||||||
|
throw '"callback" parameter is mandatory.';
|
||||||
|
if (sourceId)
|
||||||
|
return callback(sourceId);
|
||||||
|
screenCallback = callback;
|
||||||
|
window.postMessage({
|
||||||
|
'get-custom-sourceId': arr
|
||||||
|
}, '*');
|
||||||
|
}
|
||||||
|
function getSourceIdWithAudio(callback) {
|
||||||
|
if (!callback)
|
||||||
|
throw '"callback" parameter is mandatory.';
|
||||||
|
if (sourceId)
|
||||||
|
return callback(sourceId);
|
||||||
|
screenCallback = callback;
|
||||||
|
window.postMessage('audio-plus-tab', '*');
|
||||||
|
}
|
||||||
function getChromeExtensionStatus(extensionid, callback) {
|
function getChromeExtensionStatus(extensionid, callback) {
|
||||||
if (isFirefox)
|
if (isFirefox)
|
||||||
return callback('not-chrome');
|
return callback('not-chrome');
|
||||||
if (arguments.length != 2) {
|
if (arguments.length != 2) {
|
||||||
callback = extensionid;
|
callback = extensionid;
|
||||||
extensionid = 'ajhifddimkapgcifgcodmmfdlknahffk';
|
extensionid = 'lfcgfepafnobdloecchnfaclibenjold';
|
||||||
}
|
}
|
||||||
var image = document.createElement('img');
|
var image = document.createElement('img');
|
||||||
image.src = 'chrome-extension://' + extensionid + '/icon.png';
|
image.src = 'chrome-extension://' + extensionid + '/icon.png';
|
||||||
|
@ -60,7 +80,7 @@ function getChromeExtensionStatus(extensionid, callback) {
|
||||||
window.postMessage('are-you-there', '*');
|
window.postMessage('are-you-there', '*');
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (chromeMediaSource == 'screen') {
|
if (chromeMediaSource == 'screen') {
|
||||||
callback(extensionid == extensionid ? 'installed-enabled' : 'installed-disabled');
|
callback('installed-disabled');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
callback('installed-enabled');
|
callback('installed-enabled');
|
||||||
|
@ -70,7 +90,10 @@ function getChromeExtensionStatus(extensionid, callback) {
|
||||||
callback('not-installed');
|
callback('not-installed');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
function getScreenConstraints(callback) {
|
function getScreenConstraintsWithAudio(callback) {
|
||||||
|
getScreenConstraints(callback, true);
|
||||||
|
}
|
||||||
|
function getScreenConstraints(callback, captureSourceIdWithAudio) {
|
||||||
sourceId = '';
|
sourceId = '';
|
||||||
var firefoxScreenConstraints = {
|
var firefoxScreenConstraints = {
|
||||||
mozMediaSource: 'window',
|
mozMediaSource: 'window',
|
||||||
|
@ -87,10 +110,21 @@ function getScreenConstraints(callback) {
|
||||||
optional: []
|
optional: []
|
||||||
};
|
};
|
||||||
if (chromeMediaSource == 'desktop' && !sourceId) {
|
if (chromeMediaSource == 'desktop' && !sourceId) {
|
||||||
getSourceId(function () {
|
if (captureSourceIdWithAudio) {
|
||||||
|
getSourceIdWithAudio(function (sourceId, canRequestAudioTrack) {
|
||||||
|
screen_constraints.mandatory.chromeMediaSourceId = sourceId;
|
||||||
|
if (canRequestAudioTrack) {
|
||||||
|
screen_constraints.canRequestAudioTrack = true;
|
||||||
|
}
|
||||||
|
callback(sourceId == 'PermissionDeniedError' ? sourceId : null, screen_constraints);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
getSourceId(function (sourceId) {
|
||||||
screen_constraints.mandatory.chromeMediaSourceId = sourceId;
|
screen_constraints.mandatory.chromeMediaSourceId = sourceId;
|
||||||
callback(sourceId == 'PermissionDeniedError' ? sourceId : null, screen_constraints);
|
callback(sourceId == 'PermissionDeniedError' ? sourceId : null, screen_constraints);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (chromeMediaSource == 'desktop') {
|
if (chromeMediaSource == 'desktop') {
|
||||||
|
@ -99,6 +133,7 @@ function getScreenConstraints(callback) {
|
||||||
callback(null, screen_constraints);
|
callback(null, screen_constraints);
|
||||||
}
|
}
|
||||||
exports.getScreenConstraints = getScreenConstraints;
|
exports.getScreenConstraints = getScreenConstraints;
|
||||||
|
exports.getScreenConstraintsWithAudio = getScreenConstraintsWithAudio;
|
||||||
exports.isChromeExtensionAvailable = isChromeExtensionAvailable;
|
exports.isChromeExtensionAvailable = isChromeExtensionAvailable;
|
||||||
exports.getChromeExtensionStatus = getChromeExtensionStatus;
|
exports.getChromeExtensionStatus = getChromeExtensionStatus;
|
||||||
exports.getSourceId = getSourceId;
|
exports.getSourceId = getSourceId;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"Screen-Capturing.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/ScreenSharing/Screen-Capturing.js"],"names":[],"mappings":"AACA,IAAI,iBAAiB,GAAG,QAAQ,CAAC;AACjC,IAAI,cAAc,CAAC;AACnB,IAAI,SAAS,GAAG,OAAO,MAAM,CAAC,cAAc,KAAK,WAAW,CAAC;AAC7D,IAAI,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC1E,IAAI,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC;AAE3C,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,UAAU,KAAK;IAC9C,IAAI,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;QACxC,OAAO;KACV;IACD,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC;AAGH,2BAA2B,IAAI;IAE3B,IAAI,IAAI,IAAI,uBAAuB,EAAE;QACjC,iBAAiB,GAAG,uBAAuB,CAAC;QAC5C,IAAI,cAAc;YACd,OAAO,cAAc,CAAC,uBAAuB,CAAC,CAAC;;YAE/C,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;KAChD;IAED,IAAI,IAAI,IAAI,qCAAqC,EAAE;QAC/C,iBAAiB,GAAG,SAAS,CAAC;KACjC;IAED,IAAI,IAAI,CAAC,QAAQ,IAAI,cAAc,EAAE;QACjC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC5C;AACL,CAAC;AAGD,oCAAoC,QAAQ;IACxC,I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,CAAC;AAChE,OAAO,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;AAC5D,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@ -9,6 +9,7 @@ export declare class WebRtcStats {
|
||||||
isEnabled(): boolean;
|
isEnabled(): boolean;
|
||||||
initWebRtcStats(): void;
|
initWebRtcStats(): void;
|
||||||
stopWebRtcStats(): void;
|
stopWebRtcStats(): void;
|
||||||
|
getSelectedIceCandidateInfo(): Promise<any>;
|
||||||
private sendStatsToHttpEndpoint;
|
private sendStatsToHttpEndpoint;
|
||||||
private standardizeReport;
|
private standardizeReport;
|
||||||
private getStatsAgnostic;
|
private getStatsAgnostic;
|
||||||
|
|
|
@ -77,6 +77,70 @@ var WebRtcStats = /** @class */ (function () {
|
||||||
console.warn('WebRtc stats stopped for disposed stream ' + this.stream.streamId + ' of connection ' + this.stream.connection.connectionId);
|
console.warn('WebRtc stats stopped for disposed stream ' + this.stream.streamId + ' of connection ' + this.stream.connection.connectionId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
WebRtcStats.prototype.getSelectedIceCandidateInfo = function () {
|
||||||
|
var _this = this;
|
||||||
|
return new Promise(function (resolve, reject) {
|
||||||
|
_this.getStatsAgnostic(_this.stream.getRTCPeerConnection(), function (stats) {
|
||||||
|
if ((platform.name.indexOf('Chrome') !== -1) || (platform.name.indexOf('Opera') !== -1)) {
|
||||||
|
var localCandidateId = void 0, remoteCandidateId = void 0, googCandidatePair = void 0;
|
||||||
|
var localCandidates = {};
|
||||||
|
var remoteCandidates = {};
|
||||||
|
for (var key in stats) {
|
||||||
|
var stat = stats[key];
|
||||||
|
if (stat.type === 'localcandidate') {
|
||||||
|
localCandidates[stat.id] = stat;
|
||||||
|
}
|
||||||
|
else if (stat.type === 'remotecandidate') {
|
||||||
|
remoteCandidates[stat.id] = stat;
|
||||||
|
}
|
||||||
|
else if (stat.type === 'googCandidatePair' && (stat.googActiveConnection === 'true')) {
|
||||||
|
googCandidatePair = stat;
|
||||||
|
localCandidateId = stat.localCandidateId;
|
||||||
|
remoteCandidateId = stat.remoteCandidateId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var finalLocalCandidate_1 = localCandidates[localCandidateId];
|
||||||
|
if (!!finalLocalCandidate_1) {
|
||||||
|
var candList = _this.stream.getLocalIceCandidateList();
|
||||||
|
var cand = candList.filter(function (c) {
|
||||||
|
return (!!c.candidate &&
|
||||||
|
c.candidate.indexOf(finalLocalCandidate_1.ipAddress) >= 0 &&
|
||||||
|
c.candidate.indexOf(finalLocalCandidate_1.portNumber) >= 0 &&
|
||||||
|
c.candidate.indexOf(finalLocalCandidate_1.priority) >= 0);
|
||||||
|
});
|
||||||
|
finalLocalCandidate_1.raw = !!cand[0] ? cand[0].candidate : 'ERROR: Cannot find local candidate in list of sent ICE candidates';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
finalLocalCandidate_1 = 'ERROR: No active local ICE candidate. Probably ICE-TCP is being used';
|
||||||
|
}
|
||||||
|
var finalRemoteCandidate_1 = remoteCandidates[remoteCandidateId];
|
||||||
|
if (!!finalRemoteCandidate_1) {
|
||||||
|
var candList = _this.stream.getRemoteIceCandidateList();
|
||||||
|
var cand = candList.filter(function (c) {
|
||||||
|
return (!!c.candidate &&
|
||||||
|
c.candidate.indexOf(finalRemoteCandidate_1.ipAddress) >= 0 &&
|
||||||
|
c.candidate.indexOf(finalRemoteCandidate_1.portNumber) >= 0 &&
|
||||||
|
c.candidate.indexOf(finalRemoteCandidate_1.priority) >= 0);
|
||||||
|
});
|
||||||
|
finalRemoteCandidate_1.raw = !!cand[0] ? cand[0].candidate : 'ERROR: Cannot find remote candidate in list of received ICE candidates';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
finalRemoteCandidate_1 = 'ERROR: No active remote ICE candidate. Probably ICE-TCP is being used';
|
||||||
|
}
|
||||||
|
resolve({
|
||||||
|
googCandidatePair: googCandidatePair,
|
||||||
|
localCandidate: finalLocalCandidate_1,
|
||||||
|
remoteCandidate: finalRemoteCandidate_1
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
reject('Selected ICE candidate info only available for Chrome');
|
||||||
|
}
|
||||||
|
}, function (error) {
|
||||||
|
reject(error);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
WebRtcStats.prototype.sendStatsToHttpEndpoint = function (instrumentation) {
|
WebRtcStats.prototype.sendStatsToHttpEndpoint = function (instrumentation) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var sendPost = function (json) {
|
var sendPost = function (json) {
|
||||||
|
@ -174,7 +238,7 @@ var WebRtcStats = /** @class */ (function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (platform.name.indexOf('Chrome') !== -1) {
|
else if ((platform.name.indexOf('Chrome') !== -1) || (platform.name.indexOf('Opera') !== -1)) {
|
||||||
for (var _i = 0, _a = Object.keys(stats); _i < _a.length; _i++) {
|
for (var _i = 0, _a = Object.keys(stats); _i < _a.length; _i++) {
|
||||||
var key = _a[_i];
|
var key = _a[_i];
|
||||||
var stat = stats[key];
|
var stat = stats[key];
|
||||||
|
@ -256,10 +320,14 @@ var WebRtcStats = /** @class */ (function () {
|
||||||
this.getStatsAgnostic(this.stream.getRTCPeerConnection(), f, function (error) { console.log(error); });
|
this.getStatsAgnostic(this.stream.getRTCPeerConnection(), f, function (error) { console.log(error); });
|
||||||
};
|
};
|
||||||
WebRtcStats.prototype.standardizeReport = function (response) {
|
WebRtcStats.prototype.standardizeReport = function (response) {
|
||||||
|
console.log(response);
|
||||||
|
var standardReport = {};
|
||||||
if (platform.name.indexOf('Firefox') !== -1) {
|
if (platform.name.indexOf('Firefox') !== -1) {
|
||||||
|
Object.keys(response).forEach(function (key) {
|
||||||
|
console.log(response[key]);
|
||||||
|
});
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
var standardReport = {};
|
|
||||||
response.result().forEach(function (report) {
|
response.result().forEach(function (report) {
|
||||||
var standardStats = {
|
var standardStats = {
|
||||||
id: report.id,
|
id: report.id,
|
||||||
|
@ -277,12 +345,12 @@ var WebRtcStats = /** @class */ (function () {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (platform.name.indexOf('Firefox') !== -1) {
|
if (platform.name.indexOf('Firefox') !== -1) {
|
||||||
// getStats takes args in different order in Chrome and Firefox
|
// getStats takes args in different order in Chrome and Firefox
|
||||||
return pc.getStats(null, function (response) {
|
return pc.getStats(null).then(function (response) {
|
||||||
var report = _this.standardizeReport(response);
|
var report = _this.standardizeReport(response);
|
||||||
successCb(report);
|
successCb(report);
|
||||||
}, failureCb);
|
})["catch"](failureCb);
|
||||||
}
|
}
|
||||||
else if (platform.name.indexOf('Chrome') !== -1) {
|
else if ((platform.name.indexOf('Chrome') !== -1) || (platform.name.indexOf('Opera') !== -1)) {
|
||||||
// In Chrome, the first two arguments are reversed
|
// In Chrome, the first two arguments are reversed
|
||||||
return pc.getStats(function (response) {
|
return pc.getStats(function (response) {
|
||||||
var report = _this.standardizeReport(response);
|
var report = _this.standardizeReport(response);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -44,5 +44,5 @@
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
"version": "2.1.0"
|
"version": "2.2.0"
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>OpenVidu Server</name>
|
<name>OpenVidu Server</name>
|
||||||
<version>2.1.0</version>
|
<version>2.2.0</version>
|
||||||
<description>OpenVidu Server</description>
|
<description>OpenVidu Server</description>
|
||||||
<url>https://github.com/OpenVidu/openvidu</url>
|
<url>https://github.com/OpenVidu/openvidu</url>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"@angular/router": "6.0.3",
|
"@angular/router": "6.0.3",
|
||||||
"core-js": "^2.5.7",
|
"core-js": "^2.5.7",
|
||||||
"hammerjs": "2.0.8",
|
"hammerjs": "2.0.8",
|
||||||
"openvidu-browser": "2.1.0",
|
"openvidu-browser": "2.2.0",
|
||||||
"rxjs": "^6.2.0",
|
"rxjs": "^6.2.0",
|
||||||
"zone.js": "0.8.26"
|
"zone.js": "0.8.26"
|
||||||
},
|
},
|
||||||
|
|
|
@ -44,7 +44,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
style-loader@0.21.0
|
webpack@4.8.3
|
||||||
MIT
|
MIT
|
||||||
Copyright JS Foundation and other contributors
|
Copyright JS Foundation and other contributors
|
||||||
|
|
||||||
|
@ -67,143 +67,6 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
@angular/animations@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/cdk@6.2.1
|
|
||||||
MIT
|
|
||||||
The MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2018 Google LLC.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
@angular/common@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/compiler@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/core@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/flex-layout@6.0.0-beta.16
|
|
||||||
MIT
|
|
||||||
The MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2018 Google LLC.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
@angular/forms@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/http@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/material@6.2.1
|
|
||||||
MIT
|
|
||||||
The MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2018 Google LLC.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
@angular/platform-browser-dynamic@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/platform-browser@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
@angular/router@6.0.3
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
events@1.1.1
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
Copyright Joyent, Inc. and other Node contributors.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
||||||
persons to whom the Software is furnished to do so, subject to the
|
|
||||||
following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included
|
|
||||||
in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
||||||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
||||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
||||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
||||||
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
freeice@2.2.0
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
hammerjs@2.0.8
|
hammerjs@2.0.8
|
||||||
MIT
|
MIT
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
@ -227,827 +90,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
hark@1.2.0
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
inherits@2.0.3
|
|
||||||
ISC
|
|
||||||
The ISC License
|
|
||||||
|
|
||||||
Copyright (c) Isaac Z. Schlueter
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
|
||||||
copyright notice and this permission notice appear in all copies.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
||||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
|
|
||||||
merge@1.2.0
|
|
||||||
MIT
|
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2014 yeikos - http://www.yeikos.com
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
normalice@1.0.1
|
|
||||||
MIT
|
|
||||||
MIT
|
|
||||||
|
|
||||||
openvidu-browser@2.1.0
|
|
||||||
Apache-2.0
|
|
||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
|
||||||
platform@1.3.5
|
|
||||||
MIT
|
|
||||||
Copyright 2014-2018 Benjamin Tan <https://demoneaux.github.io/>
|
|
||||||
Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
rxjs@6.2.0
|
|
||||||
Apache-2.0
|
|
||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
|
||||||
sdp-transform@1.5.3
|
|
||||||
MIT
|
|
||||||
(The MIT License)
|
|
||||||
|
|
||||||
Copyright (c) 2013 Eirik Albrigtsen
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
'Software'), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
||||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
sdp-translator@0.1.24
|
|
||||||
Apache-2.0
|
|
||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
|
||||||
tslib@1.9.2
|
|
||||||
Apache-2.0
|
|
||||||
Apache License
|
|
||||||
|
|
||||||
Version 2.0, January 2004
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
||||||
|
|
||||||
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
||||||
|
|
||||||
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
||||||
|
|
||||||
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
ua-parser-js@0.7.18
|
|
||||||
(GPL-2.0 OR MIT)
|
|
||||||
(GPL-2.0 OR MIT)
|
|
||||||
|
|
||||||
uuid@3.2.1
|
|
||||||
MIT
|
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2010-2016 Robert Kieffer and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
webpack@4.8.3
|
|
||||||
MIT
|
|
||||||
Copyright JS Foundation and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
'Software'), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
||||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
wolfy87-eventemitter@5.2.4
|
|
||||||
Unlicense
|
|
||||||
Unlicense
|
|
|
@ -12,12 +12,12 @@
|
||||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|
||||||
</head>
|
<link rel="stylesheet" href="styles.3aeb2b08ae81545ecaf9.css"></head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<app-root>
|
<app-root>
|
||||||
<mat-spinner></mat-spinner>
|
<mat-spinner></mat-spinner>
|
||||||
</app-root>
|
</app-root>
|
||||||
<script type="text/javascript" src="runtime.js"></script><script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="styles.js"></script><script type="text/javascript" src="vendor.js"></script><script type="text/javascript" src="main.js"></script></body>
|
<script type="text/javascript" src="runtime.a66f828dca56eeb90e02.js"></script><script type="text/javascript" src="polyfills.3582350dd6075fd34141.js"></script><script type="text/javascript" src="main.f2fbb21fb437ac40d44d.js"></script></body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,137 +0,0 @@
|
||||||
/******/ (function(modules) { // webpackBootstrap
|
|
||||||
/******/ // install a JSONP callback for chunk loading
|
|
||||||
/******/ function webpackJsonpCallback(data) {
|
|
||||||
/******/ var chunkIds = data[0];
|
|
||||||
/******/ var moreModules = data[1];
|
|
||||||
/******/ var executeModules = data[2];
|
|
||||||
/******/ // add "moreModules" to the modules object,
|
|
||||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
||||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
|
||||||
/******/ for(;i < chunkIds.length; i++) {
|
|
||||||
/******/ chunkId = chunkIds[i];
|
|
||||||
/******/ if(installedChunks[chunkId]) {
|
|
||||||
/******/ resolves.push(installedChunks[chunkId][0]);
|
|
||||||
/******/ }
|
|
||||||
/******/ installedChunks[chunkId] = 0;
|
|
||||||
/******/ }
|
|
||||||
/******/ for(moduleId in moreModules) {
|
|
||||||
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
|
||||||
/******/ modules[moduleId] = moreModules[moduleId];
|
|
||||||
/******/ }
|
|
||||||
/******/ }
|
|
||||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
|
||||||
/******/ while(resolves.length) {
|
|
||||||
/******/ resolves.shift()();
|
|
||||||
/******/ }
|
|
||||||
/******/
|
|
||||||
/******/ // add entry modules from loaded chunk to deferred list
|
|
||||||
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
|
|
||||||
/******/
|
|
||||||
/******/ // run deferred modules when all chunks ready
|
|
||||||
/******/ return checkDeferredModules();
|
|
||||||
/******/ };
|
|
||||||
/******/ function checkDeferredModules() {
|
|
||||||
/******/ var result;
|
|
||||||
/******/ for(var i = 0; i < deferredModules.length; i++) {
|
|
||||||
/******/ var deferredModule = deferredModules[i];
|
|
||||||
/******/ var fulfilled = true;
|
|
||||||
/******/ for(var j = 1; j < deferredModule.length; j++) {
|
|
||||||
/******/ var depId = deferredModule[j];
|
|
||||||
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
|
|
||||||
/******/ }
|
|
||||||
/******/ if(fulfilled) {
|
|
||||||
/******/ deferredModules.splice(i--, 1);
|
|
||||||
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
|
|
||||||
/******/ }
|
|
||||||
/******/ }
|
|
||||||
/******/ return result;
|
|
||||||
/******/ }
|
|
||||||
/******/
|
|
||||||
/******/ // The module cache
|
|
||||||
/******/ var installedModules = {};
|
|
||||||
/******/
|
|
||||||
/******/ // object to store loaded and loading chunks
|
|
||||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
||||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
|
||||||
/******/ var installedChunks = {
|
|
||||||
/******/ "runtime": 0
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ var deferredModules = [];
|
|
||||||
/******/
|
|
||||||
/******/ // The require function
|
|
||||||
/******/ function __webpack_require__(moduleId) {
|
|
||||||
/******/
|
|
||||||
/******/ // Check if module is in cache
|
|
||||||
/******/ if(installedModules[moduleId]) {
|
|
||||||
/******/ return installedModules[moduleId].exports;
|
|
||||||
/******/ }
|
|
||||||
/******/ // Create a new module (and put it into the cache)
|
|
||||||
/******/ var module = installedModules[moduleId] = {
|
|
||||||
/******/ i: moduleId,
|
|
||||||
/******/ l: false,
|
|
||||||
/******/ exports: {}
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // Execute the module function
|
|
||||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
||||||
/******/
|
|
||||||
/******/ // Flag the module as loaded
|
|
||||||
/******/ module.l = true;
|
|
||||||
/******/
|
|
||||||
/******/ // Return the exports of the module
|
|
||||||
/******/ return module.exports;
|
|
||||||
/******/ }
|
|
||||||
/******/
|
|
||||||
/******/
|
|
||||||
/******/ // expose the modules object (__webpack_modules__)
|
|
||||||
/******/ __webpack_require__.m = modules;
|
|
||||||
/******/
|
|
||||||
/******/ // expose the module cache
|
|
||||||
/******/ __webpack_require__.c = installedModules;
|
|
||||||
/******/
|
|
||||||
/******/ // define getter function for harmony exports
|
|
||||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
||||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
||||||
/******/ Object.defineProperty(exports, name, {
|
|
||||||
/******/ configurable: false,
|
|
||||||
/******/ enumerable: true,
|
|
||||||
/******/ get: getter
|
|
||||||
/******/ });
|
|
||||||
/******/ }
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // define __esModule on exports
|
|
||||||
/******/ __webpack_require__.r = function(exports) {
|
|
||||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
||||||
/******/ __webpack_require__.n = function(module) {
|
|
||||||
/******/ var getter = module && module.__esModule ?
|
|
||||||
/******/ function getDefault() { return module['default']; } :
|
|
||||||
/******/ function getModuleExports() { return module; };
|
|
||||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
||||||
/******/ return getter;
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // Object.prototype.hasOwnProperty.call
|
|
||||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
||||||
/******/
|
|
||||||
/******/ // __webpack_public_path__
|
|
||||||
/******/ __webpack_require__.p = "";
|
|
||||||
/******/
|
|
||||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
|
||||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
|
||||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
|
||||||
/******/ jsonpArray = jsonpArray.slice();
|
|
||||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
|
||||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
|
||||||
/******/
|
|
||||||
/******/
|
|
||||||
/******/ // run deferred modules from other chunks
|
|
||||||
/******/ checkDeferredModules();
|
|
||||||
/******/ })
|
|
||||||
/************************************************************************/
|
|
||||||
/******/ ([]);
|
|
||||||
//# sourceMappingURL=runtime.js.map
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -15,12 +15,13 @@
|
||||||
"colormap": "2.3.0",
|
"colormap": "2.3.0",
|
||||||
"core-js": "2.5.7",
|
"core-js": "2.5.7",
|
||||||
"hammerjs": "2.0.8",
|
"hammerjs": "2.0.8",
|
||||||
"openvidu-browser": "2.1.0",
|
"openvidu-browser": "2.2.0",
|
||||||
"openvidu-node-client": "2.0.0",
|
"openvidu-node-client": "2.0.0",
|
||||||
"rxjs": "6.2.0",
|
"rxjs": "6.2.0",
|
||||||
"zone.js": "0.8.26"
|
"zone.js": "0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@angular-devkit/build-angular": "~0.6.6",
|
||||||
"@angular/cli": "6.0.7",
|
"@angular/cli": "6.0.7",
|
||||||
"@angular/compiler-cli": "6.0.3",
|
"@angular/compiler-cli": "6.0.3",
|
||||||
"@angular/language-service": "6.0.3",
|
"@angular/language-service": "6.0.3",
|
||||||
|
@ -30,8 +31,7 @@
|
||||||
"codelyzer": "4.3.0",
|
"codelyzer": "4.3.0",
|
||||||
"ts-node": "6.1.0",
|
"ts-node": "6.1.0",
|
||||||
"tslint": "5.10.0",
|
"tslint": "5.10.0",
|
||||||
"typescript": "~2.7.2",
|
"typescript": "~2.7.2"
|
||||||
"@angular-devkit/build-angular": "~0.6.6"
|
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "openvidu-testapp",
|
"name": "openvidu-testapp",
|
||||||
|
@ -44,5 +44,5 @@
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"test": "ng test"
|
"test": "ng test"
|
||||||
},
|
},
|
||||||
"version": "2.1.0"
|
"version": "2.2.0"
|
||||||
}
|
}
|
Loading…
Reference in New Issue