mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser, node-client and java-client compiled files
parent
de9655568f
commit
c4750105c6
|
@ -87,7 +87,8 @@ var Connection = /** @class */ (function () {
|
|||
videoActive: opts.videoActive,
|
||||
typeOfVideo: opts.typeOfVideo,
|
||||
frameRate: opts.frameRate,
|
||||
videoDimensions: !!opts.videoDimensions ? JSON.parse(opts.videoDimensions) : undefined
|
||||
videoDimensions: !!opts.videoDimensions ? JSON.parse(opts.videoDimensions) : undefined,
|
||||
filter: !!opts.filter ? opts.filter : undefined
|
||||
};
|
||||
var stream = new Stream_1.Stream(_this.session, streamOptions);
|
||||
_this.addStream(stream);
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../src/OpenVidu/Connection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAGH,mCAAkC;AAMlC;;;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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U,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,AA3ID,IA2IC;AA3IY,gCAAU"}
|
|
@ -0,0 +1,73 @@
|
|||
import { Stream } from './Stream';
|
||||
import { FilterEvent } from '../OpenViduInternal/Events/FilterEvent';
|
||||
import { ObjMap } from '../OpenViduInternal/Interfaces/Private/ObjMap';
|
||||
/**
|
||||
* **WARNING**: experimental option. This interface may change in the near future
|
||||
*
|
||||
* Video/audio filter applied to a Stream. See [[Stream.applyFilter]]
|
||||
*/
|
||||
export declare class Filter {
|
||||
/**
|
||||
* Type of filter applied. This is the name of the remote class identifying the filter to apply in Kurento Media Server.
|
||||
* For example: `"FaceOverlayFilter"`, `"GStreamerFilter"`.
|
||||
*
|
||||
* You can get this property in `*.kmd.json` files defining the Kurento filters. For example, for GStreamerFilter that's
|
||||
* [here](https://github.com/Kurento/kms-filters/blob/53a452fac71d61795952e3d2202156c6b00f6d65/src/server/interface/filters.GStreamerFilter.kmd.json#L4)
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* Parameters used to initialize the filter.
|
||||
* These correspond to the constructor parameters used in the filter in Kurento Media Server (except for `mediaPipeline` parameter, which is never needed).
|
||||
*
|
||||
* For example: for `filter.type = "GStreamerFilter"` could be `filter.options = {"command": "videobalance saturation=0.0"}`
|
||||
*
|
||||
* You can get this property in `*.kmd.json` files defining the Kurento filters. For example, for GStreamerFilter that's
|
||||
* [here](https://github.com/Kurento/kms-filters/blob/53a452fac71d61795952e3d2202156c6b00f6d65/src/server/interface/filters.GStreamerFilter.kmd.json#L13-L31)
|
||||
*/
|
||||
options: Object;
|
||||
/**
|
||||
* Value passed the last time [[Filter.execMethod]] was called. If `undefined` this method has not been called yet.
|
||||
*
|
||||
* You can use this value to know the current status of any applied filter
|
||||
*/
|
||||
lastExecMethod?: {
|
||||
method: string;
|
||||
params: Object;
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
handlers: ObjMap<(event: FilterEvent) => void>;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
stream: Stream;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(type: string, options: Object);
|
||||
/**
|
||||
* Executes a filter method. Available methods are specific for each filter
|
||||
*
|
||||
* @param method Name of the method
|
||||
* @param params Parameters of the method
|
||||
*/
|
||||
execMethod(method: string, params: Object): Promise<any>;
|
||||
/**
|
||||
* Subscribe to certain filter event. Available events are specific for each filter
|
||||
*
|
||||
* @param eventType Event to which subscribe to.
|
||||
* @param handler Function to execute upon event dispatched. It receives as parameter a [[FilterEvent]] object
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the event listener was successfully attached to the filter and rejected with an Error object if not
|
||||
*/
|
||||
addEventListener(eventType: string, handler: (event: FilterEvent) => void): Promise<any>;
|
||||
/**
|
||||
* Removes certain filter event listener previously set.
|
||||
*
|
||||
* @param eventType Event to unsubscribe from.
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the event listener was successfully removed from the filter and rejected with an Error object in other case
|
||||
*/
|
||||
removeEventListener(eventType: string): Promise<any>;
|
||||
}
|
|
@ -0,0 +1,145 @@
|
|||
"use strict";
|
||||
/*
|
||||
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
exports.__esModule = true;
|
||||
var StreamPropertyChangedEvent_1 = require("../OpenViduInternal/Events/StreamPropertyChangedEvent");
|
||||
var OpenViduError_1 = require("../OpenViduInternal/Enums/OpenViduError");
|
||||
/**
|
||||
* **WARNING**: experimental option. This interface may change in the near future
|
||||
*
|
||||
* Video/audio filter applied to a Stream. See [[Stream.applyFilter]]
|
||||
*/
|
||||
var Filter = /** @class */ (function () {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
function Filter(type, options) {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
this.handlers = {};
|
||||
this.type = type;
|
||||
this.options = options;
|
||||
}
|
||||
/**
|
||||
* Executes a filter method. Available methods are specific for each filter
|
||||
*
|
||||
* @param method Name of the method
|
||||
* @param params Parameters of the method
|
||||
*/
|
||||
Filter.prototype.execMethod = function (method, params) {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
console.info('Executing filter method to stream ' + _this.stream.streamId);
|
||||
var stringParams;
|
||||
if (typeof params !== 'string') {
|
||||
try {
|
||||
stringParams = JSON.stringify(params);
|
||||
}
|
||||
catch (error) {
|
||||
var errorMsg = "'params' property must be a JSON formatted object";
|
||||
console.error(errorMsg);
|
||||
reject(errorMsg);
|
||||
}
|
||||
}
|
||||
else {
|
||||
stringParams = params;
|
||||
}
|
||||
_this.stream.session.openvidu.sendRequest('execFilterMethod', { streamId: _this.stream.streamId, method: method, params: stringParams }, function (error, response) {
|
||||
if (error) {
|
||||
console.error('Error executing filter method for Stream ' + _this.stream.streamId, error);
|
||||
if (error.code === 401) {
|
||||
reject(new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED, "You don't have permissions to execute a filter method"));
|
||||
}
|
||||
else {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.info('Filter method successfully executed on Stream ' + _this.stream.streamId);
|
||||
var oldValue = Object.assign({}, _this.stream.filter);
|
||||
_this.stream.filter.lastExecMethod = { method: method, params: JSON.parse(stringParams) };
|
||||
_this.stream.session.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this.stream.session, _this.stream, 'filter', _this.stream.filter, oldValue, 'execFilterMethod')]);
|
||||
_this.stream.streamManager.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this.stream.streamManager, _this.stream, 'filter', _this.stream.filter, oldValue, 'execFilterMethod')]);
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
/**
|
||||
* Subscribe to certain filter event. Available events are specific for each filter
|
||||
*
|
||||
* @param eventType Event to which subscribe to.
|
||||
* @param handler Function to execute upon event dispatched. It receives as parameter a [[FilterEvent]] object
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the event listener was successfully attached to the filter and rejected with an Error object if not
|
||||
*/
|
||||
Filter.prototype.addEventListener = function (eventType, handler) {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
console.info('Adding filter event listener to event ' + eventType + ' to stream ' + _this.stream.streamId);
|
||||
_this.stream.session.openvidu.sendRequest('addFilterEventListener', { streamId: _this.stream.streamId, eventType: eventType }, function (error, response) {
|
||||
if (error) {
|
||||
console.error('Error adding filter event listener to event ' + eventType + 'for Stream ' + _this.stream.streamId, error);
|
||||
if (error.code === 401) {
|
||||
reject(new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED, "You don't have permissions to add a filter event listener"));
|
||||
}
|
||||
else {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
else {
|
||||
_this.handlers[eventType] = handler;
|
||||
console.info('Filter event listener to event ' + eventType + ' successfully applied on Stream ' + _this.stream.streamId);
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
/**
|
||||
* Removes certain filter event listener previously set.
|
||||
*
|
||||
* @param eventType Event to unsubscribe from.
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the event listener was successfully removed from the filter and rejected with an Error object in other case
|
||||
*/
|
||||
Filter.prototype.removeEventListener = function (eventType) {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
console.info('Removing filter event listener to event ' + eventType + ' to stream ' + _this.stream.streamId);
|
||||
_this.stream.session.openvidu.sendRequest('removeFilterEventListener', { streamId: _this.stream.streamId, eventType: eventType }, function (error, response) {
|
||||
if (error) {
|
||||
console.error('Error removing filter event listener to event ' + eventType + 'for Stream ' + _this.stream.streamId, error);
|
||||
if (error.code === 401) {
|
||||
reject(new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED, "You don't have permissions to add a filter event listener"));
|
||||
}
|
||||
else {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
else {
|
||||
delete _this.handlers[eventType];
|
||||
console.info('Filter event listener to event ' + eventType + ' successfully removed on Stream ' + _this.stream.streamId);
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return Filter;
|
||||
}());
|
||||
exports.Filter = Filter;
|
||||
//# sourceMappingURL=Filter.js.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../src/OpenVidu/Filter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAIH,oGAAmG;AACnG,yEAA2F;AAI3F;;;;GAIG;AACH;IA0CI;;OAEG;IACH,gBAAY,IAAY,EAAE,OAAe;QAdzC;;WAEG;QACH,aAAQ,GAAyC,EAAE,CAAC;QAYhD,IAAI,CAAC,I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G,SAAS,GAAG,aAAa,GAAG,KAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;oBAC1H,IAAI,KAAK,CAAC,IAAI,KAAK,GAAG,EAAE;wBACpB,MAAM,CAAC,IAAI,6BAAa,CAAC,iCAAiB,CAAC,0BAA0B,EAAE,2DAA2D,CAAC,CAAC,CAAC;qBACxI;yBAAM;wBACH,MAAM,CAAC,KAAK,CAAC,CAAC;qBACjB;iBACJ;qBAAM;oBACH,OAAO,KAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;oBAChC,OAAO,CAAC,IAAI,CAAC,iCAAiC,GAAG,SAAS,GAAG,kCAAkC,GAAG,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;oBACxH,OAAO,EAAE,CAAC;iBACb;YACL,CAAC,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAEL,aAAC;AAAD,CAAC,AAjKD,IAiKC;AAjKY,wBAAM"}
|
|
@ -69,6 +69,11 @@ export declare class OpenVidu {
|
|||
* @returns 1 if the browser supports OpenVidu, 0 otherwise
|
||||
*/
|
||||
checkSystemRequirements(): number;
|
||||
/**
|
||||
* Checks if the browser supports screen-sharing. Chrome, Firefox and Opera support screen-sharing
|
||||
* @returns 1 if the browser supports screen-sharing, 0 otherwise
|
||||
*/
|
||||
checkScreenSharingCapabilities(): number;
|
||||
/**
|
||||
* Collects information about the media input devices available on the system. You can pass property `deviceId` of a [[Device]] object as value of `audioSource` or `videoSource` properties in [[initPublisher]] method
|
||||
*/
|
||||
|
@ -148,10 +153,6 @@ export declare class OpenVidu {
|
|||
* @hidden
|
||||
*/
|
||||
sendRequest(method: string, params: any, callback?: any): void;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
isMediaStreamTrack(mediaSource: any): boolean;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
|
|
@ -135,13 +135,14 @@ var OpenVidu = /** @class */ (function () {
|
|||
properties = param2;
|
||||
properties = {
|
||||
audioSource: (typeof properties.audioSource !== 'undefined') ? properties.audioSource : undefined,
|
||||
frameRate: this.isMediaStreamTrack(properties.videoSource) ? undefined : ((typeof properties.frameRate !== 'undefined') ? properties.frameRate : undefined),
|
||||
frameRate: (properties.videoSource instanceof MediaStreamTrack) ? undefined : ((typeof properties.frameRate !== 'undefined') ? properties.frameRate : undefined),
|
||||
insertMode: (typeof properties.insertMode !== 'undefined') ? ((typeof properties.insertMode === 'string') ? VideoInsertMode_1.VideoInsertMode[properties.insertMode] : properties.insertMode) : VideoInsertMode_1.VideoInsertMode.APPEND,
|
||||
mirror: (typeof properties.mirror !== 'undefined') ? properties.mirror : true,
|
||||
publishAudio: (typeof properties.publishAudio !== 'undefined') ? properties.publishAudio : true,
|
||||
publishVideo: (typeof properties.publishVideo !== 'undefined') ? properties.publishVideo : true,
|
||||
resolution: this.isMediaStreamTrack(properties.videoSource) ? undefined : ((typeof properties.resolution !== 'undefined') ? properties.resolution : '640x480'),
|
||||
videoSource: (typeof properties.videoSource !== 'undefined') ? properties.videoSource : undefined
|
||||
resolution: (properties.videoSource instanceof MediaStreamTrack) ? undefined : ((typeof properties.resolution !== 'undefined') ? properties.resolution : '640x480'),
|
||||
videoSource: (typeof properties.videoSource !== 'undefined') ? properties.videoSource : undefined,
|
||||
filter: properties.filter
|
||||
};
|
||||
}
|
||||
else {
|
||||
|
@ -221,6 +222,19 @@ var OpenVidu = /** @class */ (function () {
|
|||
return 1;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Checks if the browser supports screen-sharing. Chrome, Firefox and Opera support screen-sharing
|
||||
* @returns 1 if the browser supports screen-sharing, 0 otherwise
|
||||
*/
|
||||
OpenVidu.prototype.checkScreenSharingCapabilities = function () {
|
||||
var browser = platform.name;
|
||||
if ((browser !== 'Chrome') && (browser !== 'Firefox') && (browser !== 'Opera')) {
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Collects information about the media input devices available on the system. You can pass property `deviceId` of a [[Device]] object as value of `audioSource` or `videoSource` properties in [[initPublisher]] method
|
||||
*/
|
||||
|
@ -384,15 +398,16 @@ var OpenVidu = /** @class */ (function () {
|
|||
mediaConstraints.video.frameRate = { ideal: publisherProperties.frameRate };
|
||||
}
|
||||
if (!!publisherProperties.videoSource && typeof publisherProperties.videoSource === 'string') {
|
||||
if (publisherProperties.videoSource === 'screen') {
|
||||
if (platform.name !== 'Chrome' && platform.name.indexOf('Firefox') === -1) {
|
||||
if (publisherProperties.videoSource === 'screen' ||
|
||||
(platform.name.indexOf('Firefox') !== -1 && publisherProperties.videoSource === 'window')) {
|
||||
if (platform.name !== 'Chrome' && platform.name.indexOf('Firefox') === -1 && platform.name !== 'Opera') {
|
||||
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);
|
||||
reject(error);
|
||||
}
|
||||
else {
|
||||
if (!!_this.advancedConfiguration.screenShareChromeExtension && !(platform.name.indexOf('Firefox') !== -1)) {
|
||||
// Custom screen sharing extension for Chrome
|
||||
// Custom screen sharing extension for Chrome (and Opera)
|
||||
screenSharing.getScreenConstraints(function (error, screenConstraints) {
|
||||
if (!!error || !!screenConstraints.mandatory && screenConstraints.mandatory.chromeMediaSource === 'screen') {
|
||||
if (error === 'permission-denied' || error === 'PermissionDeniedError') {
|
||||
|
@ -423,8 +438,9 @@ var OpenVidu = /** @class */ (function () {
|
|||
});
|
||||
}
|
||||
else {
|
||||
// Default screen sharing extension for Chrome
|
||||
screenSharingAuto.getScreenId(function (error, sourceId, screenConstraints) {
|
||||
// Default screen sharing extension for Chrome (or is Firefox)
|
||||
var firefoxString = platform.name.indexOf('Firefox') !== -1 ? publisherProperties.videoSource : undefined;
|
||||
screenSharingAuto.getScreenId(firefoxString, function (error, sourceId, screenConstraints) {
|
||||
if (!!error) {
|
||||
if (error === 'not-installed') {
|
||||
var extensionUrl = !!_this.advancedConfiguration.screenShareChromeExtension ? _this.advancedConfiguration.screenShareChromeExtension :
|
||||
|
@ -494,6 +510,7 @@ var OpenVidu = /** @class */ (function () {
|
|||
recordingStopped: this.session.onRecordingStopped.bind(this.session),
|
||||
sendMessage: this.session.onNewMessage.bind(this.session),
|
||||
streamPropertyChanged: this.session.onStreamPropertyChanged.bind(this.session),
|
||||
filterEventDispatched: this.session.onFilterEventDispatched.bind(this.session),
|
||||
iceCandidate: this.session.recvIceCandidate.bind(this.session),
|
||||
mediaError: this.session.onMediaError.bind(this.session)
|
||||
}
|
||||
|
@ -517,19 +534,6 @@ var OpenVidu = /** @class */ (function () {
|
|||
console.debug('Sending request: {method:"' + method + '", params: ' + JSON.stringify(params) + '}');
|
||||
this.jsonRpcClient.send(method, params, callback);
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
OpenVidu.prototype.isMediaStreamTrack = function (mediaSource) {
|
||||
var is = (!!mediaSource &&
|
||||
mediaSource.enabled !== undefined && typeof mediaSource.enabled === 'boolean' &&
|
||||
mediaSource.id !== undefined && typeof mediaSource.id === 'string' &&
|
||||
mediaSource.kind !== undefined && typeof mediaSource.kind === 'string' &&
|
||||
mediaSource.label !== undefined && typeof mediaSource.label === 'string' &&
|
||||
mediaSource.muted !== undefined && typeof mediaSource.muted === 'boolean' &&
|
||||
mediaSource.readyState !== undefined && typeof mediaSource.readyState === 'string');
|
||||
return is;
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
@ -238,11 +241,11 @@ var Publisher = /** @class */ (function (_super) {
|
|||
var successCallback = function (mediaStream) {
|
||||
_this.accessAllowed = true;
|
||||
_this.accessDenied = false;
|
||||
if (_this.openvidu.isMediaStreamTrack(_this.properties.audioSource)) {
|
||||
if (_this.properties.audioSource instanceof MediaStreamTrack) {
|
||||
mediaStream.removeTrack(mediaStream.getAudioTracks()[0]);
|
||||
mediaStream.addTrack(_this.properties.audioSource);
|
||||
}
|
||||
if (_this.openvidu.isMediaStreamTrack(_this.properties.videoSource)) {
|
||||
if (_this.properties.videoSource instanceof MediaStreamTrack) {
|
||||
mediaStream.removeTrack(mediaStream.getVideoTracks()[0]);
|
||||
mediaStream.addTrack(_this.properties.videoSource);
|
||||
}
|
||||
|
@ -334,6 +337,25 @@ var Publisher = /** @class */ (function (_super) {
|
|||
}
|
||||
resolve();
|
||||
};
|
||||
// Check if new constraints need to be generated. No constraints needed if
|
||||
// - video track is given and no audio
|
||||
// - audio track is given and no video
|
||||
// - both video and audio tracks are given
|
||||
if ((_this.properties.videoSource instanceof MediaStreamTrack && !_this.properties.audioSource)
|
||||
|| (_this.properties.audioSource instanceof MediaStreamTrack && !_this.properties.videoSource)
|
||||
|| (_this.properties.videoSource instanceof MediaStreamTrack && _this.properties.audioSource instanceof MediaStreamTrack)) {
|
||||
var mediaStream = new MediaStream();
|
||||
if (_this.properties.videoSource instanceof MediaStreamTrack) {
|
||||
mediaStream.addTrack(_this.properties.videoSource);
|
||||
}
|
||||
if (_this.properties.audioSource instanceof MediaStreamTrack) {
|
||||
mediaStream.addTrack(_this.properties.audioSource);
|
||||
}
|
||||
// MediaStreamTracks are handled within callback - just call callback with new MediaStream() and let it handle the sources
|
||||
successCallback(mediaStream);
|
||||
// Return as we do not need to process further
|
||||
return;
|
||||
}
|
||||
_this.openvidu.generateMediaConstraints(_this.properties)
|
||||
.then(function (constraints) {
|
||||
var outboundStreamOptions = {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -263,6 +263,11 @@ export declare class Session implements EventDispatcher {
|
|||
* @hidden
|
||||
*/
|
||||
onRecordingStopped(response: any): void;
|
||||
/**
|
||||
* @hidden
|
||||
* response = {connectionId: string, streamId: string, type: string, data: Object}
|
||||
*/
|
||||
onFilterEventDispatched(response: any): void;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
|
|
@ -17,8 +17,10 @@
|
|||
*/
|
||||
exports.__esModule = true;
|
||||
var Connection_1 = require("./Connection");
|
||||
var Filter_1 = require("./Filter");
|
||||
var Subscriber_1 = require("./Subscriber");
|
||||
var ConnectionEvent_1 = require("../OpenViduInternal/Events/ConnectionEvent");
|
||||
var FilterEvent_1 = require("../OpenViduInternal/Events/FilterEvent");
|
||||
var RecordingEvent_1 = require("../OpenViduInternal/Events/RecordingEvent");
|
||||
var SessionDisconnectedEvent_1 = require("../OpenViduInternal/Events/SessionDisconnectedEvent");
|
||||
var SignalEvent_1 = require("../OpenViduInternal/Events/SignalEvent");
|
||||
|
@ -60,10 +62,10 @@ var Session = /** @class */ (function () {
|
|||
}
|
||||
/**
|
||||
* Connects to the session using `token`. Parameter `metadata` allows you to pass extra data to share with other users when
|
||||
* they receive `streamCreated` event. The structure of `metadata` string is up to you (maybe some standarized format
|
||||
* they receive `streamCreated` event. The structure of `metadata` string is up to you (maybe some standardized format
|
||||
* as JSON or XML is a good idea), the only restriction is a maximum length of 10000 chars.
|
||||
*
|
||||
* This metadata is not considered secure, as it is generated in the client side. To pass securized data, add it as a parameter in the
|
||||
* This metadata is not considered secure, as it is generated in the client side. To pass secure data, add it as a parameter in the
|
||||
* token generation operation (through the API REST, openvidu-java-client or openvidu-node-client).
|
||||
*
|
||||
* Only after the returned Promise is successfully resolved [[Session.connection]] object will be available and properly defined.
|
||||
|
@ -508,7 +510,7 @@ var Session = /** @class */ (function () {
|
|||
}
|
||||
if (type === 'publisherStartSpeaking' || type === 'publisherStopSpeaking') {
|
||||
this.speakingEventsEnabled = false;
|
||||
// If there are already available remote streams, disablae hark in all of them
|
||||
// If there are already available remote streams, disable hark in all of them
|
||||
for (var connectionId in this.remoteConnections) {
|
||||
var str = this.remoteConnections[connectionId].stream;
|
||||
if (!!str && !!str.speechEvent) {
|
||||
|
@ -644,9 +646,7 @@ var Session = /** @class */ (function () {
|
|||
*/
|
||||
Session.prototype.onStreamPropertyChanged = function (msg) {
|
||||
var _this = this;
|
||||
this.getRemoteConnection(msg.connectionId, 'Remote connection ' + msg.connectionId + " unknown when 'onStreamPropertyChanged'. " +
|
||||
'Existing remote connections: ' + JSON.stringify(Object.keys(this.remoteConnections)))
|
||||
.then(function (connection) {
|
||||
var callback = function (connection) {
|
||||
if (!!connection.stream && connection.stream.streamId === msg.streamId) {
|
||||
var stream = connection.stream;
|
||||
var oldValue = void 0;
|
||||
|
@ -666,6 +666,21 @@ var Session = /** @class */ (function () {
|
|||
msg.newValue = JSON.parse(JSON.parse(msg.newValue));
|
||||
stream.videoDimensions = msg.newValue;
|
||||
break;
|
||||
case 'filter':
|
||||
oldValue = stream.filter;
|
||||
msg.newValue = (Object.keys(msg.newValue).length > 0) ? msg.newValue : undefined;
|
||||
if (msg.newValue !== undefined) {
|
||||
stream.filter = new Filter_1.Filter(msg.newValue.type, msg.newValue.options);
|
||||
stream.filter.stream = stream;
|
||||
if (msg.newValue.lastExecMethod) {
|
||||
stream.filter.lastExecMethod = msg.newValue.lastExecMethod;
|
||||
}
|
||||
}
|
||||
else {
|
||||
delete stream.filter;
|
||||
}
|
||||
msg.newValue = stream.filter;
|
||||
break;
|
||||
}
|
||||
_this.ee.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this, stream, msg.property, msg.newValue, oldValue, msg.reason)]);
|
||||
stream.streamManager.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(stream.streamManager, stream, msg.property, msg.newValue, oldValue, msg.reason)]);
|
||||
|
@ -673,9 +688,20 @@ var Session = /** @class */ (function () {
|
|||
else {
|
||||
console.error("No stream with streamId '" + msg.streamId + "' found for connection '" + msg.connectionId + "' on 'streamPropertyChanged' event");
|
||||
}
|
||||
})["catch"](function (openViduError) {
|
||||
console.error(openViduError);
|
||||
});
|
||||
};
|
||||
if (msg.connectionId === this.connection.connectionId) {
|
||||
// Your stream has been forcedly changed (filter feature)
|
||||
callback(this.connection);
|
||||
}
|
||||
else {
|
||||
this.getRemoteConnection(msg.connectionId, 'Remote connection ' + msg.connectionId + " unknown when 'onStreamPropertyChanged'. " +
|
||||
'Existing remote connections: ' + JSON.stringify(Object.keys(this.remoteConnections)))
|
||||
.then(function (connection) {
|
||||
callback(connection);
|
||||
})["catch"](function (openViduError) {
|
||||
console.error(openViduError);
|
||||
});
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
|
@ -683,8 +709,19 @@ var Session = /** @class */ (function () {
|
|||
Session.prototype.recvIceCandidate = function (msg) {
|
||||
var candidate = {
|
||||
candidate: msg.candidate,
|
||||
component: msg.component,
|
||||
foundation: msg.foundation,
|
||||
ip: msg.ip,
|
||||
port: msg.port,
|
||||
priority: msg.priority,
|
||||
protocol: msg.protocol,
|
||||
relatedAddress: msg.relatedAddress,
|
||||
relatedPort: msg.relatedPort,
|
||||
sdpMid: msg.sdpMid,
|
||||
sdpMLineIndex: msg.sdpMLineIndex,
|
||||
tcpType: msg.tcpType,
|
||||
usernameFragment: msg.usernameFragment,
|
||||
type: msg.type,
|
||||
toJSON: function () {
|
||||
return { candidate: msg.candidate };
|
||||
}
|
||||
|
@ -768,6 +805,20 @@ var Session = /** @class */ (function () {
|
|||
Session.prototype.onRecordingStopped = function (response) {
|
||||
this.ee.emitEvent('recordingStopped', [new RecordingEvent_1.RecordingEvent(this, 'recordingStopped', response.id, response.name)]);
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
* response = {connectionId: string, streamId: string, type: string, data: Object}
|
||||
*/
|
||||
Session.prototype.onFilterEventDispatched = function (response) {
|
||||
var connectionId = response.connectionId;
|
||||
var streamId = response.streamId;
|
||||
this.getConnection(connectionId, 'No connection found for connectionId ' + connectionId)
|
||||
.then(function (connection) {
|
||||
console.info('Filter event dispatched');
|
||||
var stream = connection.stream;
|
||||
stream.filter.handlers[response.eventType](new FilterEvent_1.FilterEvent(stream.filter, response.eventType, response.data));
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
@ -817,6 +868,7 @@ var Session = /** @class */ (function () {
|
|||
var joinParams = {
|
||||
token: (!!token) ? token : '',
|
||||
session: _this.sessionId,
|
||||
platform: platform.description,
|
||||
metadata: !!_this.options.metadata ? _this.options.metadata : '',
|
||||
secret: _this.openvidu.getSecret(),
|
||||
recorder: _this.openvidu.getRecorder()
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,9 @@
|
|||
import { Connection } from './Connection';
|
||||
import { Event } from '../OpenViduInternal/Events/Event';
|
||||
import { Filter } from './Filter';
|
||||
import { Session } from './Session';
|
||||
import { StreamManager } from './StreamManager';
|
||||
import { EventDispatcher } from '../OpenViduInternal/Interfaces/Public/EventDispatcher';
|
||||
import { InboundStreamOptions } from '../OpenViduInternal/Interfaces/Private/InboundStreamOptions';
|
||||
import { OutboundStreamOptions } from '../OpenViduInternal/Interfaces/Private/OutboundStreamOptions';
|
||||
import { WebRtcPeer } from '../OpenViduInternal/WebRtcPeer/WebRtcPeer';
|
||||
|
@ -10,7 +13,7 @@ import EventEmitter = require('wolfy87-eventemitter');
|
|||
* Each [[Publisher]] and [[Subscriber]] has an attribute of type Stream, as they give access
|
||||
* to one of them (sending and receiving it, respectively)
|
||||
*/
|
||||
export declare class Stream {
|
||||
export declare class Stream implements EventDispatcher {
|
||||
/**
|
||||
* The Connection object that is publishing the stream
|
||||
*/
|
||||
|
@ -68,6 +71,14 @@ export declare class Stream {
|
|||
width: number;
|
||||
height: number;
|
||||
};
|
||||
/**
|
||||
* **WARNING**: experimental option. This interface may change in the near future
|
||||
*
|
||||
* Filter applied to the Stream. You can apply filters by calling [[Stream.applyFilter]], execute methods of the applied filter with
|
||||
* [[Filter.execMethod]] and remove it with [[Stream.removeFilter]]. Be aware that the client calling this methods must have the
|
||||
* necessary permissions: the token owned by the client must have been initialized with the appropriated `allowedFilters` array.
|
||||
*/
|
||||
filter: Filter;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
@ -108,6 +119,33 @@ export declare class Stream {
|
|||
* @hidden
|
||||
*/
|
||||
constructor(session: Session, options: InboundStreamOptions | OutboundStreamOptions | {});
|
||||
/**
|
||||
* See [[EventDispatcher.on]]
|
||||
*/
|
||||
on(type: string, handler: (event: Event) => void): EventDispatcher;
|
||||
/**
|
||||
* See [[EventDispatcher.once]]
|
||||
*/
|
||||
once(type: string, handler: (event: Event) => void): EventDispatcher;
|
||||
/**
|
||||
* See [[EventDispatcher.off]]
|
||||
*/
|
||||
off(type: string, handler?: (event: Event) => void): EventDispatcher;
|
||||
/**
|
||||
* Applies an audio/video filter to the stream.
|
||||
*
|
||||
* @param type Type of filter applied. See [[Filter.type]]
|
||||
* @param options Parameters used to initialize the filter. See [[Filter.options]]
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved to the applied filter if success and rejected with an Error object if not
|
||||
*/
|
||||
applyFilter(type: string, options: Object): Promise<Filter>;
|
||||
/**
|
||||
* Removes an audio/video filter previously applied.
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the previously applied filter has been successfully removed and rejected with an Error object in other case
|
||||
*/
|
||||
removeFilter(): Promise<any>;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
|
|
@ -16,9 +16,11 @@
|
|||
*
|
||||
*/
|
||||
exports.__esModule = true;
|
||||
var Filter_1 = require("./Filter");
|
||||
var WebRtcPeer_1 = require("../OpenViduInternal/WebRtcPeer/WebRtcPeer");
|
||||
var WebRtcStats_1 = require("../OpenViduInternal/WebRtcStats/WebRtcStats");
|
||||
var PublisherSpeakingEvent_1 = require("../OpenViduInternal/Events/PublisherSpeakingEvent");
|
||||
var StreamPropertyChangedEvent_1 = require("../OpenViduInternal/Events/StreamPropertyChangedEvent");
|
||||
var EventEmitter = require("wolfy87-eventemitter");
|
||||
var hark = require("hark");
|
||||
var OpenViduError_1 = require("../OpenViduInternal/Enums/OpenViduError");
|
||||
|
@ -66,6 +68,12 @@ var Stream = /** @class */ (function () {
|
|||
this.frameRate = (this.inboundStreamOpts.frameRate === -1) ? undefined : this.inboundStreamOpts.frameRate;
|
||||
this.videoDimensions = this.inboundStreamOpts.videoDimensions;
|
||||
}
|
||||
if (!!this.inboundStreamOpts.filter && (Object.keys(this.inboundStreamOpts.filter).length > 0)) {
|
||||
if (!!this.inboundStreamOpts.filter.lastExecMethod && Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length === 0) {
|
||||
delete this.inboundStreamOpts.filter.lastExecMethod;
|
||||
}
|
||||
this.filter = this.inboundStreamOpts.filter;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// OutboundStreamOptions: stream belongs to a Publisher
|
||||
|
@ -85,12 +93,127 @@ var Stream = /** @class */ (function () {
|
|||
this.typeOfVideo = this.isSendScreen() ? 'SCREEN' : 'CAMERA';
|
||||
}
|
||||
}
|
||||
if (!!this.outboundStreamOpts.publisherProperties.filter) {
|
||||
this.filter = this.outboundStreamOpts.publisherProperties.filter;
|
||||
}
|
||||
}
|
||||
this.ee.on('mediastream-updated', function () {
|
||||
_this.streamManager.updateMediaStream(_this.mediaStream);
|
||||
console.debug('Video srcObject [' + _this.mediaStream + '] updated in stream [' + _this.streamId + ']');
|
||||
});
|
||||
}
|
||||
/**
|
||||
* See [[EventDispatcher.on]]
|
||||
*/
|
||||
Stream.prototype.on = function (type, handler) {
|
||||
var _this = this;
|
||||
this.ee.on(type, function (event) {
|
||||
if (event) {
|
||||
console.info("Event '" + type + "' triggered by stream '" + _this.streamId + "'", event);
|
||||
}
|
||||
else {
|
||||
console.info("Event '" + type + "' triggered by stream '" + _this.streamId + "'");
|
||||
}
|
||||
handler(event);
|
||||
});
|
||||
return this;
|
||||
};
|
||||
/**
|
||||
* See [[EventDispatcher.once]]
|
||||
*/
|
||||
Stream.prototype.once = function (type, handler) {
|
||||
var _this = this;
|
||||
this.ee.once(type, function (event) {
|
||||
if (event) {
|
||||
console.info("Event '" + type + "' triggered once by stream '" + _this.streamId + "'", event);
|
||||
}
|
||||
else {
|
||||
console.info("Event '" + type + "' triggered once by stream '" + _this.streamId + "'");
|
||||
}
|
||||
handler(event);
|
||||
});
|
||||
return this;
|
||||
};
|
||||
/**
|
||||
* See [[EventDispatcher.off]]
|
||||
*/
|
||||
Stream.prototype.off = function (type, handler) {
|
||||
if (!handler) {
|
||||
this.ee.removeAllListeners(type);
|
||||
}
|
||||
else {
|
||||
this.ee.off(type, handler);
|
||||
}
|
||||
return this;
|
||||
};
|
||||
/**
|
||||
* Applies an audio/video filter to the stream.
|
||||
*
|
||||
* @param type Type of filter applied. See [[Filter.type]]
|
||||
* @param options Parameters used to initialize the filter. See [[Filter.options]]
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved to the applied filter if success and rejected with an Error object if not
|
||||
*/
|
||||
Stream.prototype.applyFilter = function (type, options) {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
console.info('Applying filter to stream ' + _this.streamId);
|
||||
options = !!options ? options : {};
|
||||
if (typeof options !== 'string') {
|
||||
options = JSON.stringify(options);
|
||||
}
|
||||
_this.session.openvidu.sendRequest('applyFilter', { streamId: _this.streamId, type: type, options: options }, function (error, response) {
|
||||
if (error) {
|
||||
console.error('Error applying filter for Stream ' + _this.streamId, error);
|
||||
if (error.code === 401) {
|
||||
reject(new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED, "You don't have permissions to apply a filter"));
|
||||
}
|
||||
else {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.info('Filter successfully applied on Stream ' + _this.streamId);
|
||||
var oldValue = _this.filter;
|
||||
_this.filter = new Filter_1.Filter(type, options);
|
||||
_this.filter.stream = _this;
|
||||
_this.session.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this.session, _this, 'filter', _this.filter, oldValue, 'applyFilter')]);
|
||||
_this.streamManager.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this.streamManager, _this, 'filter', _this.filter, oldValue, 'applyFilter')]);
|
||||
resolve(_this.filter);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
/**
|
||||
* Removes an audio/video filter previously applied.
|
||||
*
|
||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the previously applied filter has been successfully removed and rejected with an Error object in other case
|
||||
*/
|
||||
Stream.prototype.removeFilter = function () {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
console.info('Removing filter of stream ' + _this.streamId);
|
||||
_this.session.openvidu.sendRequest('removeFilter', { streamId: _this.streamId }, function (error, response) {
|
||||
if (error) {
|
||||
console.error('Error removing filter for Stream ' + _this.streamId, error);
|
||||
if (error.code === 401) {
|
||||
reject(new OpenViduError_1.OpenViduError(OpenViduError_1.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED, "You don't have permissions to remove a filter"));
|
||||
}
|
||||
else {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.info('Filter successfully removed from Stream ' + _this.streamId);
|
||||
var oldValue = _this.filter;
|
||||
delete _this.filter;
|
||||
_this.session.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this.session, _this, 'filter', _this.filter, oldValue, 'applyFilter')]);
|
||||
_this.streamManager.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent_1.StreamPropertyChangedEvent(_this.streamManager, _this, 'filter', _this.filter, oldValue, 'applyFilter')]);
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
/* Hidden methods */
|
||||
/**
|
||||
* @hidden
|
||||
|
@ -179,7 +302,9 @@ var Stream = /** @class */ (function () {
|
|||
*/
|
||||
Stream.prototype.disposeWebRtcPeer = function () {
|
||||
if (this.webRtcPeer) {
|
||||
this.webRtcPeer.dispose();
|
||||
var isSenderAndCustomTrack = !!this.outboundStreamOpts &&
|
||||
this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack;
|
||||
this.webRtcPeer.dispose(isSenderAndCustomTrack);
|
||||
}
|
||||
if (this.speechEvent) {
|
||||
this.speechEvent.stop();
|
||||
|
@ -337,7 +462,8 @@ var Stream = /** @class */ (function () {
|
|||
videoActive: _this.videoActive,
|
||||
typeOfVideo: typeOfVideo,
|
||||
frameRate: !!_this.frameRate ? _this.frameRate : -1,
|
||||
videoDimensions: JSON.stringify(_this.videoDimensions)
|
||||
videoDimensions: JSON.stringify(_this.videoDimensions),
|
||||
filter: _this.outboundStreamOpts.publisherProperties.filter
|
||||
}, function (error, response) {
|
||||
if (error) {
|
||||
if (error.code === 401) {
|
||||
|
@ -424,7 +550,14 @@ var Stream = /** @class */ (function () {
|
|||
});
|
||||
};
|
||||
Stream.prototype.remotePeerSuccessfullyEstablished = function () {
|
||||
this.mediaStream = this.webRtcPeer.pc.getRemoteStreams()[0];
|
||||
this.mediaStream = new MediaStream();
|
||||
var receiver;
|
||||
for (var _i = 0, _a = this.webRtcPeer.pc.getReceivers(); _i < _a.length; _i++) {
|
||||
receiver = _a[_i];
|
||||
if (!!receiver.track) {
|
||||
this.mediaStream.addTrack(receiver.track);
|
||||
}
|
||||
}
|
||||
console.debug('Peer remote stream', this.mediaStream);
|
||||
if (!!this.mediaStream) {
|
||||
this.ee.emitEvent('mediastream-updated');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -173,6 +173,9 @@ var StreamManager = /** @class */ (function () {
|
|||
*/
|
||||
StreamManager.prototype.addVideoElement = function (video) {
|
||||
this.initializeVideoProperties(video);
|
||||
if (this.stream.isLocal() && this.stream.displayMyRemote()) {
|
||||
video.srcObject = this.stream.getMediaStream();
|
||||
}
|
||||
// If the video element is already part of this StreamManager do nothing
|
||||
for (var _i = 0, _a = this.videos; _i < _a.length; _i++) {
|
||||
var v = _a[_i];
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Subscriber.js","sourceRoot":"","sources":["../../src/OpenVidu/Subscriber.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAGH,iDAAgD;AAIhD;;GAEG;AACH;IAAgC,8BAAa;IAIzC;;OAEG;IACH,oBAAY,MAAc,EAAE,MAA4B,EAAE,UAAgC;QAA1F,YACI,kBAAM,MAAM,EAAE,MAAM,CAAC,SAIxB;QAHG,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,aAAa,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AI,CAAC,OAAO,GAAG,KAAI,CAAC,aAAa,CAAC;QAClC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;;IACjC,CAAC;IAED;;;OAGG;IACH,qCAAgB,GAAhB,UAAiB,KAAc;QAC3B,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,UAAC,KAAK;YACxD,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,mBAAmB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,CAAC;QAC1G,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACH,qCAAgB,GAAhB,UAAiB,KAAc;QAC3B,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,UAAC,KAAK;YACxD,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,mBAAmB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,CAAC;QAC1G,OAAO,IAAI,CAAC;IAChB,CAAC;IAEL,iBAAC;AAAD,CAAC,AAtCD,CAAgC,6BAAa,GAsC5C;AAtCY,gCAAU"}
|
|
@ -55,7 +55,7 @@ export declare enum OpenViduErrorName {
|
|||
PUBLISHER_PROPERTIES_ERROR = "PUBLISHER_PROPERTIES_ERROR",
|
||||
/**
|
||||
* The client tried to call a method without the required permissions. This can occur for methods [[Session.publish]],
|
||||
* [[Session.forceUnpublish]] and [[Session.forceDisconnect]]
|
||||
* [[Session.forceUnpublish]], [[Session.forceDisconnect]], [[Stream.applyFilter]], [[Stream.removeFilter]]
|
||||
*/
|
||||
OPENVIDU_PERMISSION_DENIED = "OPENVIDU_PERMISSION_DENIED",
|
||||
/**
|
||||
|
|
|
@ -74,7 +74,7 @@ var OpenViduErrorName;
|
|||
OpenViduErrorName["PUBLISHER_PROPERTIES_ERROR"] = "PUBLISHER_PROPERTIES_ERROR";
|
||||
/**
|
||||
* The client tried to call a method without the required permissions. This can occur for methods [[Session.publish]],
|
||||
* [[Session.forceUnpublish]] and [[Session.forceDisconnect]]
|
||||
* [[Session.forceUnpublish]], [[Session.forceDisconnect]], [[Stream.applyFilter]], [[Stream.removeFilter]]
|
||||
*/
|
||||
OpenViduErrorName["OPENVIDU_PERMISSION_DENIED"] = "OPENVIDU_PERMISSION_DENIED";
|
||||
/**
|
||||
|
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ConnectionEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/ConnectionEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;GAIG;AACH;IAAqC,mCAAK;IAmBtC;;OAEG;IACH,yBAAY,UAAmB,EAAE,MAAe,EAAE,IAAY,EAAE,UAAsB,EAAE,MAAc;QAAtG,YACI,kBAAM,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,SAGlC;QAFG,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,6CAAmB,GAAnB,cAAwB,CAAC;IAE7B,sBAAC;AAAD,CAAC,AAlCD,CAAqC,aAAK,GAkCzC;AAlCY,0CAAe"}
|
||||
{"version":3,"file":"ConnectionEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/ConnectionEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;GAIG;AACH;IAAqC,mCAAK;IAmBtC;;OAEG;IACH,yBAAY,UAAmB,EAAE,MAAe,EAAE,IAAY,EAAE,UAAsB,EAAE,MAAc;QAAtG,YACI,kBAAM,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,SAGlC;QAFG,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,6CAAmB,GAAnB,cAAwB,CAAC;IAE7B,sBAAC;AAAD,CAAC,AAlCD,CAAqC,aAAK,GAkCzC;AAlCY,0CAAe"}
|
|
@ -1,3 +1,4 @@
|
|||
import { Filter } from '../../OpenVidu/Filter';
|
||||
import { StreamManager } from '../../OpenVidu/StreamManager';
|
||||
import { Session } from '../../OpenVidu/Session';
|
||||
export declare abstract class Event {
|
||||
|
@ -8,7 +9,7 @@ export declare abstract class Event {
|
|||
/**
|
||||
* The object that dispatched the event
|
||||
*/
|
||||
target: Session | StreamManager;
|
||||
target: Session | StreamManager | Filter;
|
||||
/**
|
||||
* The type of event. This is the same string you pass as first parameter when calling method `on()` of any object implementing [[EventDispatcher]] interface
|
||||
*/
|
||||
|
@ -17,7 +18,7 @@ export declare abstract class Event {
|
|||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(cancelable: boolean, target: Session | StreamManager, type: string);
|
||||
constructor(cancelable: boolean, target: Session | StreamManager | Filter, type: string);
|
||||
/**
|
||||
* Whether the default beahivour of the event has been prevented or not. Call [[Event.preventDefault]] to prevent it
|
||||
*/
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/Event.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAKH;IAmBI;;OAEG;IACH,eAAY,UAAmB,EAAE,MAA+B,EAAE,IAAY;QALtE,qBAAgB,GAAG,KAAK,CAAC;QAM7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,kCAAkB,GAAlB;QACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,8BAAc,GAAd;QACI,oCAAoC;QACpC,IAAI,CAAC,mBAAmB,GAAG,cAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IACjC,CAAC;IAIL,YAAC;AAAD,CAAC,AAzDD,IAyDC;AAzDqB,sBAAK"}
|
||||
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/Event.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAOH;IAmBI;;OAEG;IACH,eAAY,UAAmB,EAAE,MAAwC,EAAE,IAAY;QAL/E,qBAAgB,GAAG,KAAK,CAAC;QAM7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,kCAAkB,GAAlB;QACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,8BAAc,GAAd;QACI,oCAAoC;QACpC,IAAI,CAAC,mBAAmB,GAAG,cAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IACjC,CAAC;IAIL,YAAC;AAAD,CAAC,AAzDD,IAyDC;AAzDqB,sBAAK"}
|
|
@ -0,0 +1,19 @@
|
|||
import { Event } from './Event';
|
||||
import { Filter } from '../../OpenVidu/Filter';
|
||||
/**
|
||||
* Defines every event dispatched by audio/video stream filters. You can subscribe to filter events by calling [[Filter.addEventListener]]
|
||||
*/
|
||||
export declare class FilterEvent extends Event {
|
||||
/**
|
||||
* Data of the event
|
||||
*/
|
||||
data: Object;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(target: Filter, eventType: string, data: Object);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
callDefaultBehavior(): void;
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
"use strict";
|
||||
/*
|
||||
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
exports.__esModule = true;
|
||||
var Event_1 = require("./Event");
|
||||
/**
|
||||
* Defines every event dispatched by audio/video stream filters. You can subscribe to filter events by calling [[Filter.addEventListener]]
|
||||
*/
|
||||
var FilterEvent = /** @class */ (function (_super) {
|
||||
__extends(FilterEvent, _super);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
function FilterEvent(target, eventType, data) {
|
||||
var _this = _super.call(this, false, target, eventType) || this;
|
||||
_this.data = data;
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
// tslint:disable-next-line:no-empty
|
||||
FilterEvent.prototype.callDefaultBehavior = function () { };
|
||||
return FilterEvent;
|
||||
}(Event_1.Event));
|
||||
exports.FilterEvent = FilterEvent;
|
||||
//# sourceMappingURL=FilterEvent.js.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FilterEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/FilterEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;GAEG;AACH;IAAiC,+BAAK;IAOlC;;OAEG;IACH,qBAAY,MAAc,EAAE,SAAiB,EAAE,IAAY;QAA3D,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,SAElC;QADG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACrB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,yCAAmB,GAAnB,cAAwB,CAAC;IAE7B,kBAAC;AAAD,CAAC,AArBD,CAAiC,aAAK,GAqBrC;AArBY,kCAAW"}
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"PublisherSpeakingEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/PublisherSpeakingEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;;;;;;;GAUG;AACH;IAA4C,0CAAK;IAY7C;;OAEG;IACH,gCAAY,MAAe,EAAE,IAAY,EAAE,UAAsB,EAAE,QAAgB;QAAnF,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAI7B;QAHG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC7B,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,oDAAmB,GAAnB,cAAwB,CAAC;IAE7B,6BAAC;AAAD,CAAC,AA5BD,CAA4C,aAAK,GA4BhD;AA5BY,wDAAsB"}
|
||||
{"version":3,"file":"PublisherSpeakingEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/PublisherSpeakingEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;;;;;;;GAUG;AACH;IAA4C,0CAAK;IAY7C;;OAEG;IACH,gCAAY,MAAe,EAAE,IAAY,EAAE,UAAsB,EAAE,QAAgB;QAAnF,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAI7B;QAHG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC7B,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,oDAAmB,GAAnB,cAAwB,CAAC;IAE7B,6BAAC;AAAD,CAAC,AA5BD,CAA4C,aAAK,GA4BhD;AA5BY,wDAAsB"}
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"RecordingEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/RecordingEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAIhC;;;;GAIG;AACH;IAAoC,kCAAK;IAiBrC;;OAEG;IACH,wBAAY,MAAe,EAAE,IAAY,EAAE,EAAU,EAAE,IAAY;QAAnE,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAK7B;QAJG,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,IAAI,KAAK,EAAE,EAAE;YACb,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SACpB;;IACL,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,4CAAmB,GAAnB,cAAwB,CAAC;IAE7B,qBAAC;AAAD,CAAC,AAlCD,CAAoC,aAAK,GAkCxC;AAlCY,wCAAc"}
|
||||
{"version":3,"file":"RecordingEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/RecordingEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAIhC;;;;GAIG;AACH;IAAoC,kCAAK;IAiBrC;;OAEG;IACH,wBAAY,MAAe,EAAE,IAAY,EAAE,EAAU,EAAE,IAAY;QAAnE,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAK7B;QAJG,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,IAAI,KAAK,EAAE,EAAE;YACb,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SACpB;;IACL,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,4CAAmB,GAAnB,cAAwB,CAAC;IAE7B,qBAAC;AAAD,CAAC,AAlCD,CAAoC,aAAK,GAkCxC;AAlCY,wCAAc"}
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"SessionDisconnectedEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/SessionDisconnectedEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAIhC;;GAEG;AACH;IAA8C,4CAAK;IAW/C;;OAEG;IACH,kCAAY,MAAe,EAAE,MAAc;QAA3C,YACI,kBAAM,IAAI,EAAE,MAAM,EAAE,qBAAqB,CAAC,SAE7C;QADG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,sDAAmB,GAAnB;QAEI,OAAO,CAAC,IAAI,CAAC,iCAAiC,GAAG,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,CAAC;QAEhG,IAAM,OAAO,GAAY,IAAI,CAAC,MAAM,CAAC;QAErC,4CAA4C;QAC5C,KAAK,IAAM,YAAY,IAAI,OAAO,CAAC,iBAAiB,EAAE;YAClD,IAAI,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;gBAClD,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;gBACnE,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;gBACpE,IAAI,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE;oBAC9D,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;iBAClF;gBACD,OAAO,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAC7F,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;aACrD;YACD,OAAO,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;SAClD;IACL,CAAC;IAEL,+BAAC;AAAD,CAAC,AA3CD,CAA8C,aAAK,GA2ClD;AA3CY,4DAAwB"}
|
||||
{"version":3,"file":"SessionDisconnectedEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/SessionDisconnectedEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAIhC;;GAEG;AACH;IAA8C,4CAAK;IAW/C;;OAEG;IACH,kCAAY,MAAe,EAAE,MAAc;QAA3C,YACI,kBAAM,IAAI,EAAE,MAAM,EAAE,qBAAqB,CAAC,SAE7C;QADG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,sDAAmB,GAAnB;QAEI,OAAO,CAAC,IAAI,CAAC,iCAAiC,GAAG,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,CAAC;QAEhG,IAAM,OAAO,GAAY,IAAI,CAAC,MAAM,CAAC;QAErC,4CAA4C;QAC5C,KAAK,IAAM,YAAY,IAAI,OAAO,CAAC,iBAAiB,EAAE;YAClD,IAAI,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;gBAClD,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;gBACnE,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;gBACpE,IAAI,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE;oBAC9D,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;iBAClF;gBACD,OAAO,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAC7F,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;aACrD;YACD,OAAO,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;SAClD;IACL,CAAC;IAEL,+BAAC;AAAD,CAAC,AA3CD,CAA8C,aAAK,GA2ClD;AA3CY,4DAAwB"}
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"SignalEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/SignalEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;GAIG;AACH;IAAiC,+BAAK;IAqBlC;;OAEG;IACH,qBAAY,MAAe,EAAE,IAAY,EAAE,IAAY,EAAE,IAAgB;QAAzE,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAI7B;QAHG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACrB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,yCAAmB,GAAnB,cAAwB,CAAC;IAE7B,kBAAC;AAAD,CAAC,AArCD,CAAiC,aAAK,GAqCrC;AArCY,kCAAW"}
|
||||
{"version":3,"file":"SignalEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/SignalEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;GAIG;AACH;IAAiC,+BAAK;IAqBlC;;OAEG;IACH,qBAAY,MAAe,EAAE,IAAY,EAAE,IAAY,EAAE,IAAgB;QAAzE,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAI7B;QAHG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACrB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,yCAAmB,GAAnB,cAAwB,CAAC;IAE7B,kBAAC;AAAD,CAAC,AArCD,CAAiC,aAAK,GAqCrC;AArCY,kCAAW"}
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"StreamEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/StreamEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAChC,sDAAqD;AACrD,kDAAiD;AAIjD;;;;GAIG;AACH;IAAiC,+BAAK;IAsBlC;;OAEG;IACH,qBAAY,UAAmB,EAAE,MAA2B,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAA1G,YACI,kBAAM,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,SAGlC;QAFG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,yCAAmB,GAAnB;QACI,IAAI,IAAI,CAAC,IAAI,KAAK,iBAAiB,EAAE;YAEjC,IAAI,IAAI,CAAC,MAAM,YAAY,iBAAO,EAAE;gBAChC,gBAAgB;gBAChB,OAAO,CAAC,IAAI,CAAC,iCAAiC,GAAG,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,CAAC;gBAChG,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;aACnC;iBAAM,IAAI,IAAI,CAAC,MAAM,YAAY,qBAAS,EAAE;gBACzC,eAAe;gBACf,OAAO,CAAC,IAAI,CAAC,iCAAiC,GAAG,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC,CAAC;gBAClG,aAAa,CAAa,IAAI,CAAC,MAAO,CAAC,yBAAyB,CAAC,CAAC;gBAClE,IAAI,CAAC,MAAM,CAAC,2BAA2B,GAAG,KAAK,CAAC;gBAEhD,yDAAyD;gBACzD,IAAM,kBAAkB,G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|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"StreamManagerEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/StreamManagerEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAGhC;;;GAGG;AACH;IAAwC,sCAAK;IAEzC;;OAEG;IACH,4BAAY,MAAqB;eAC7B,kBAAM,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,gDAAmB,GAAnB,cAAwB,CAAC;IAE7B,yBAAC;AAAD,CAAC,AAfD,CAAwC,aAAK,GAe5C;AAfY,gDAAkB"}
|
||||
{"version":3,"file":"StreamManagerEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/StreamManagerEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAGhC;;;GAGG;AACH;IAAwC,sCAAK;IAEzC;;OAEG;IACH,4BAAY,MAAqB;eAC7B,kBAAM,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,gDAAmB,GAAnB,cAAwB,CAAC;IAE7B,yBAAC;AAAD,CAAC,AAfD,CAAwC,aAAK,GAe5C;AAfY,gDAAkB"}
|
|
@ -13,7 +13,7 @@ export declare class StreamPropertyChangedEvent extends Event {
|
|||
*/
|
||||
stream: Stream;
|
||||
/**
|
||||
* The property of the stream that changed. This value is either `"videoActive"`, `"audioActive"` or `"videoDimensions"`
|
||||
* The property of the stream that changed. This value is either `"videoActive"`, `"audioActive"`, `"videoDimensions"` or `"filter"`
|
||||
*/
|
||||
changedProperty: string;
|
||||
/**
|
||||
|
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"StreamPropertyChangedEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/StreamPropertyChangedEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;GAIG;AACH;IAAgD,8CAAK;IA8BjD;;OAEG;IACH,oCAAY,MAA+B,EAAE,MAAc,EAAE,eAAuB,EAAE,QAAgB,EAAE,QAAgB,EAAE,MAAc;QAAxI,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,uBAAuB,CAAC,SAMhD;QALG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,wDAAmB,GAAnB,cAAwB,CAAC;IAE7B,iCAAC;AAAD,CAAC,AAhDD,CAAgD,aAAK,GAgDpD;AAhDY,gEAA0B"}
|
||||
{"version":3,"file":"StreamPropertyChangedEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/StreamPropertyChangedEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAKhC;;;;GAIG;AACH;IAAgD,8CAAK;IA8BjD;;OAEG;IACH,oCAAY,MAA+B,EAAE,MAAc,EAAE,eAAuB,EAAE,QAAgB,EAAE,QAAgB,EAAE,MAAc;QAAxI,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,uBAAuB,CAAC,SAMhD;QALG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,wDAAmB,GAAnB,cAAwB,CAAC;IAE7B,iCAAC;AAAD,CAAC,AAhDD,CAAgD,aAAK,GAgDpD;AAhDY,gEAA0B"}
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"VideoElementEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/VideoElementEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;AAEH,iCAAgC;AAIhC;;;;;GAKG;AACH;IAAuC,qCAAK;IAOxC;;OAEG;IACH,2BAAY,OAAyB,EAAE,MAAqB,EAAE,IAAY;QAA1E,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAE7B;QADG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IAC3B,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,+CAAmB,GAAnB,cAAwB,CAAC;IAE7B,wBAAC;AAAD,CAAC,AArBD,CAAuC,aAAK,GAqB3C;AArBY,8CAAiB"}
|
||||
{"version":3,"file":"VideoElementEvent.js","sourceRoot":"","sources":["../../../src/OpenViduInternal/Events/VideoElementEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;AAEH,iCAAgC;AAIhC;;;;;GAKG;AACH;IAAuC,qCAAK;IAOxC;;OAEG;IACH,2BAAY,OAAyB,EAAE,MAAqB,EAAE,IAAY;QAA1E,YACI,kBAAM,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAE7B;QADG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IAC3B,CAAC;IAED;;OAEG;IACH,oCAAoC;IACpC,+CAAmB,GAAnB,cAAwB,CAAC;IAE7B,wBAAC;AAAD,CAAC,AArBD,CAAuC,aAAK,GAqB3C;AArBY,8CAAiB"}
|
|
@ -1,4 +1,5 @@
|
|||
import { Connection } from '../../../OpenVidu/Connection';
|
||||
import { Filter } from '../../../OpenVidu/Filter';
|
||||
export interface InboundStreamOptions {
|
||||
id: string;
|
||||
connection: Connection;
|
||||
|
@ -12,4 +13,5 @@ export interface InboundStreamOptions {
|
|||
width: number;
|
||||
height: number;
|
||||
};
|
||||
filter?: Filter;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { Filter } from '../../../OpenVidu/Filter';
|
||||
export interface StreamOptionsServer {
|
||||
id: string;
|
||||
hasAudio: boolean;
|
||||
|
@ -7,4 +8,5 @@ export interface StreamOptionsServer {
|
|||
typeOfVideo: string;
|
||||
frameRate: number;
|
||||
videoDimensions: string;
|
||||
filter: Filter;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { Filter } from '../../../OpenVidu/Filter';
|
||||
import { VideoInsertMode } from '../../Enums/VideoInsertMode';
|
||||
/**
|
||||
* See [[OpenVidu.initPublisher]]
|
||||
|
@ -48,9 +49,16 @@ export interface PublisherProperties {
|
|||
* - `"screen"` to screen-share. We provide a default screen-shraring extension for Chrome that can run in any domain, but you can customize it so it has your own icon, your own name, etc. Visit this
|
||||
* [GitHub repository](https://github.com/OpenVidu/openvidu-screen-sharing-chrome-extension/) to learn how. Once you have uploaded your own extension to Chrome Web Store,
|
||||
* simply call `OpenVidu.setAdvancedConfiguration({screenShareChromeExtension : "https://chrome.google.com/webstore/detail/YOUR_EXTENSION_NAME/YOUR_EXTENSION_ID"})` before calling `OpenVidu.initPublisher(targetElement, {videoSource: "screen"})`.
|
||||
* For Firefox `"screen"` string will ask for permissions to share the entire screen. To ask for a specific window or application, use `"window"` string instead (this only applies to Firefox).
|
||||
* - A MediaStreamTrack obtained from a MediaStream object with [[OpenVidu.getUserMedia]]
|
||||
* - `false` or null to have an audio-only publisher
|
||||
* @default _Default camera_
|
||||
*/
|
||||
videoSource?: string | MediaStreamTrack | boolean;
|
||||
/**
|
||||
* **WARNING**: experimental option. This property may change in the near future
|
||||
*
|
||||
* Define a filter to apply in the Publisher's stream
|
||||
*/
|
||||
filter?: Filter;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Mapper.js","sourceRoot":"","sources":["../../../../src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/Mapper.js"],"names":[],"mappings":"AAAA;IAEE,IAAI,OAAO,GAAG,EAAE,CAAC;IAGjB,IAAI,CAAC,OAAO,GAAG,UAAS,QAAQ;QAE9B,KAAI,IAAI,GAAG,IAAI,OAAO,EACtB;YACE,IAAI,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;YAE1B,KAAI,IAAI,IAAI,IAAI,MAAM;gBACpB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;SAC1B;QAAA,CAAC;IACJ,CAAC,CAAC;IAEF,IAAI,CAAC,GAAG,GAAG,UAAS,EAAE,EAAE,MAAM;QAE5B,IAAI,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAG,GAAG,IAAI,SAAS;YACjB,OAAO,SAAS,CAAC;QAEnB,OAAO,GAAG,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC,CAAC;IAEF,IAAI,CAAC,MAAM,GAAG,UAAS,EAAE,EAAE,MAAM;QAE/B,IAAI,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAG,GAAG,IAAI,SAAS;YACjB,OAAO;QAET,OAAO,GAAG,CAAC,EAAE,CAAC,CAAC;QAGf,KAAI,IAAI,CAAC,IAAI,GAAG,EAAC;YAAC,OAAO,KAAK,CAAA;SAAC;QAE/B,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,IAAI,CAAC,GAAG,GAAG,UAAS,KAAK,EAA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 +1 @@
|
|||
{"version":3,"file":"webSocketWithReconnection.js","sourceRoot":"","sources":["../../../../../../src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/clients/transports/webSocketWithReconnection.js"],"names":[],"mappings":"AAgBA,YAAY,CAAC;AAEb,IAAI,gBAAgB,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC;AAE/D,IAAI,MAAM,GAAG,OAAO,CAAC;AAiBrB,IAAI,WAAW,GAAG,IAAI,CAAC;AACvB,IAAI,aAAa,GAAG,IAAI,CAAC;AAEzB,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,IAAI,IAAI,GAAG,CAAC,CAAC;AACb,IAAI,OAAO,GAAG,CAAC,CAAC;AAChB,IAAI,MAAM,GAAG,CAAC,CAAC;AAYf,mCAAmC,MAAM;IAErC,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,sBAAsB,CAAC;IAC3B,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC;IACvB,IAAI,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACjC,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,IAAI,oBAAoB,GAAG,KAAK,CAAC;IAEjC,IAAI,EAAE,CAAC;IAEP,IAAI,SAAS,EAAE;QACX,EAAE,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;KAC1B;SAAM;QACH,EAAE,GAAG,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC;KAC7B;IAED,EAAE,CAAC,MAAM,GAAG;QACR,YAAY,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QACxB,IAAI,MAAM,CAAC,WAAW,EAAE;YACpB,MAAM,CAAC,WAAW,EAAE,CAAC;SACxB;IACL,CAAC,CAAC;IAEF,EAAE,CAAC,OAAO,GAAG,UAAS,KAAK;QACvB,MAAM,CAAC,KAAK,CAAC,uBAAuB,GAAG,KAAK,GAAG,gCAAgC,EAAE,KAAK,CAAC,CAAC;QACxF,IAA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,OAAO;QACxB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,IAAI,CAAC,gBAAgB,GAAG,UAAS,IAAI,EAAE,QAAQ;QAC3C,sBAAsB,GAAG;YACrB,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACxC,CAAC,CAAC;QAEF,sBAAsB,EAAE,CAAC;IAC7B,CAAC,CAAC;AACN,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC"}
|
||||
{"version":3,"file":"webSocketWithReconnection.js","sourceRoot":"","sources":["../../../../../../src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/clients/transports/webSocketWithReconnection.js"],"names":[],"mappings":"AAgBA,YAAY,CAAC;AAEb,IAAI,gBAAgB,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC;AAE/D,IAAI,MAAM,GAAG,OAAO,CAAC;AAiBrB,IAAI,WAAW,GAAG,IAAI,CAAC;AACvB,IAAI,aAAa,GAAG,IAAI,CAAC;AAEzB,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,IAAI,IAAI,GAAG,CAAC,CAAC;AACb,IAAI,OAAO,GAAG,CAAC,CAAC;AAChB,IAAI,MAAM,GAAG,CAAC,CAAC;AAYf,SAAS,yBAAyB,CAAC,MAAM;IAErC,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,sBAAsB,CAAC;IAC3B,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC;IACvB,IAAI,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACjC,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,IAAI,oBAAoB,GAAG,KAAK,CAAC;IAEjC,IAAI,EAAE,CAAC;IAEP,IAAI,SAAS,EAAE;QACX,EAAE,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;KAC1B;SAAM;QACH,EAAE,GAAG,IAAI,SAAS,CA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,8BAA8B,GAAG,SAAS,CAAC,CAAC;gBACzD,KAAK,GAAG,SAAS,CAAC;gBAElB,oBAAoB,GAAG,KAAK,CAAC;YAEjC,CAAC,EAAE,MAAM,CAAC,CAAC;SACd;QAED,EAAE,CAAC,KAAK,EAAE,CAAC;IACf,CAAC,CAAC;IAEF,IAAI,CAAC,WAAW,GAAG;QACf,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAC5B,kBAAkB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC;IAEF,IAAI,CAAC,IAAI,GAAG,UAAS,OAAO;QACxB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,IAAI,CAAC,gBAAgB,GAAG,UAAS,IAAI,EAAE,QAAQ;QAC3C,sBAAsB,GAAG;YACrB,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACxC,CAAC,CAAC;QAEF,sBAAsB,EAAE,CAAC;IAC7B,CAAC,CAAC;AACN,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC"}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"version":3,"file":"JsonRPC.js","sourceRoot":"","sources":["../../../../../src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/packers/JsonRPC.js"],"names":[],"mappings":"AAYA,cAAc,OAAO,EAAE,EAAE;IAEvB,IAAI,MAAM,GACV;QACE,OAAO,EAAE,KAAK;KACf,CAAC;IAGF,IAAG,OAAO,CAAC,MAAM,EACjB;QACE,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAE/B,IAAG,OAAO,CAAC,MAAM;YACf,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAGjC,IAAG,EAAE,IAAI,SAAS;YAChB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;KAClB;SAGI,IAAG,EAAE,IAAI,SA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tils/kurento-jsonrpc/packers/XmlRPC.js"],"names":[],"mappings":"AAAA,cAAc,OAAO;IAEnB,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;AAC7C,CAAC;AAAA,CAAC;AAEF,gBAAgB,OAAO;IAErB,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;AAC7C,CAAC;AAAA,CAAC;AAGF,OAAO,CAAC,IAAI,GAAK,IAAI,CAAC;AACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
||||
{"version":3,"file":"XmlRPC.js","sourceRoot":"","sources":["../../../../../src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/packers/XmlRPC.js"],"names":[],"mappings":"AAAA,SAAS,IAAI,CAAC,OAAO;IAEnB,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;AAC7C,CAAC;AAAA,CAAC;AAEF,SAAS,MAAM,CAAC,OAAO;IAErB,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;AAC7C,CAAC;AAAA,CAAC;AAGF,OAAO,CAAC,IAAI,GAAK,IAAI,CAAC;AACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@ -1,4 +1,4 @@
|
|||
window.getScreenId = function (callback, custom_parameter) {
|
||||
window.getScreenId = function (firefoxString, callback, custom_parameter) {
|
||||
if (navigator.userAgent.indexOf('Edge') !== -1 && (!!navigator.msSaveOrOpenBlob || !!navigator.msSaveBlob)) {
|
||||
callback({
|
||||
video: true
|
||||
|
@ -8,8 +8,8 @@ window.getScreenId = function (callback, custom_parameter) {
|
|||
if (!!navigator.mozGetUserMedia) {
|
||||
callback(null, 'firefox', {
|
||||
video: {
|
||||
mozMediaSource: 'window',
|
||||
mediaSource: 'window'
|
||||
mozMediaSource: firefoxString,
|
||||
mediaSource: firefoxString
|
||||
}
|
||||
});
|
||||
return;
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Screen-Capturing-Auto.js","sourceR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;YACxF,CAAC,CAAC,CAAC;SACN;QACD,OAAO;KACV;IAGD,IAAI,iBAAiB,IAAI,SAAS,EAAE;QAChC,kBAAkB,CAAC,SAAS,CAAC,mBAAmB,GAAG,QAAQ,CAAC;KAC/D;IAGD,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;AACvC,CAAC;AAED,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACpD,OAAO,CAAC,6BAA6B,GAAG,6BAA6B,CAAC;AACtE,OAAO,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;AAChE,OAAO,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;AAC5D,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@ -30,7 +30,7 @@ export declare class WebRtcPeer {
|
|||
/**
|
||||
* This method frees the resources used by WebRtcPeer
|
||||
*/
|
||||
dispose(): void;
|
||||
dispose(videoSourceIsMediaStreamTrack: boolean): void;
|
||||
/**
|
||||
* 1) Function that creates an offer, sets it as local description and returns the offer param
|
||||
* to send to OpenVidu Server (will be the remote description of other peer)
|
||||
|
@ -50,7 +50,6 @@ export declare class WebRtcPeer {
|
|||
* Callback function invoked when an ICE candidate is received
|
||||
*/
|
||||
addIceCandidate(iceCandidate: RTCIceCandidate): Promise<void>;
|
||||
private streamStop;
|
||||
}
|
||||
export declare class WebRtcPeerRecvonly extends WebRtcPeer {
|
||||
constructor(configuration: WebRtcPeerConfiguration);
|
||||
|
|
|
@ -16,9 +16,12 @@
|
|||
*
|
||||
*/
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
|
@ -28,7 +31,6 @@ var __extends = (this && this.__extends) || (function () {
|
|||
exports.__esModule = true;
|
||||
var freeice = require("freeice");
|
||||
var uuid = require("uuid");
|
||||
var platform = require("platform");
|
||||
var WebRtcPeer = /** @class */ (function () {
|
||||
function WebRtcPeer(configuration) {
|
||||
var _this = this;
|
||||
|
@ -41,14 +43,16 @@ var WebRtcPeer = /** @class */ (function () {
|
|||
this.pc = new RTCPeerConnection({ iceServers: this.configuration.iceServers });
|
||||
this.id = !!configuration.id ? configuration.id : uuid.v4();
|
||||
this.pc.onicecandidate = function (event) {
|
||||
var candidate = event.candidate;
|
||||
if (candidate) {
|
||||
_this.localCandidatesQueue.push({ candidate: candidate.candidate });
|
||||
_this.candidategatheringdone = false;
|
||||
_this.configuration.onicecandidate(event.candidate);
|
||||
}
|
||||
else if (!_this.candidategatheringdone) {
|
||||
_this.candidategatheringdone = true;
|
||||
if (!!event.candidate) {
|
||||
var candidate = event.candidate;
|
||||
if (candidate) {
|
||||
_this.localCandidatesQueue.push({ candidate: candidate.candidate });
|
||||
_this.candidategatheringdone = false;
|
||||
_this.configuration.onicecandidate(event.candidate);
|
||||
}
|
||||
else if (!_this.candidategatheringdone) {
|
||||
_this.candidategatheringdone = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
this.pc.onsignalingstatechange = function () {
|
||||
|
@ -74,21 +78,18 @@ var WebRtcPeer = /** @class */ (function () {
|
|||
reject('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue');
|
||||
}
|
||||
if (!!_this.configuration.mediaStream) {
|
||||
_this.pc.addStream(_this.configuration.mediaStream);
|
||||
for (var _i = 0, _a = _this.configuration.mediaStream.getTracks(); _i < _a.length; _i++) {
|
||||
var track = _a[_i];
|
||||
_this.pc.addTrack(track, _this.configuration.mediaStream);
|
||||
}
|
||||
resolve();
|
||||
}
|
||||
// [Hack] https://code.google.com/p/chromium/issues/detail?id=443558
|
||||
if (_this.configuration.mode === 'sendonly' &&
|
||||
(platform.name === 'Chrome' && platform.version.toString().substring(0, 2) === '39')) {
|
||||
_this.configuration.mode = 'sendrecv';
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
};
|
||||
/**
|
||||
* This method frees the resources used by WebRtcPeer
|
||||
*/
|
||||
WebRtcPeer.prototype.dispose = function () {
|
||||
var _this = this;
|
||||
WebRtcPeer.prototype.dispose = function (videoSourceIsMediaStreamTrack) {
|
||||
console.debug('Disposing WebRtcPeer');
|
||||
try {
|
||||
if (this.pc) {
|
||||
|
@ -97,12 +98,23 @@ var WebRtcPeer = /** @class */ (function () {
|
|||
}
|
||||
this.remoteCandidatesQueue = [];
|
||||
this.localCandidatesQueue = [];
|
||||
this.pc.getLocalStreams().forEach(function (str) {
|
||||
_this.streamStop(str);
|
||||
});
|
||||
// FIXME This is not yet implemented in firefox
|
||||
// if(videoStream) pc.removeStream(videoStream);
|
||||
// if(audioStream) pc.removeStream(audioStream);
|
||||
// Stop senders
|
||||
for (var _i = 0, _a = this.pc.getSenders(); _i < _a.length; _i++) {
|
||||
var sender = _a[_i];
|
||||
if (!videoSourceIsMediaStreamTrack) {
|
||||
if (!!sender.track) {
|
||||
sender.track.stop();
|
||||
}
|
||||
}
|
||||
this.pc.removeTrack(sender);
|
||||
}
|
||||
// Stop receivers
|
||||
for (var _b = 0, _c = this.pc.getReceivers(); _b < _c.length; _b++) {
|
||||
var receiver = _c[_b];
|
||||
if (!!receiver.track) {
|
||||
receiver.track.stop();
|
||||
}
|
||||
}
|
||||
this.pc.close();
|
||||
}
|
||||
}
|
||||
|
@ -126,8 +138,8 @@ var WebRtcPeer = /** @class */ (function () {
|
|||
_this.configuration.mediaConstraints.video : true;
|
||||
}
|
||||
var constraints = {
|
||||
offerToReceiveAudio: +(_this.configuration.mode !== 'sendonly' && offerAudio),
|
||||
offerToReceiveVideo: +(_this.configuration.mode !== 'sendonly' && offerVideo)
|
||||
offerToReceiveAudio: (_this.configuration.mode !== 'sendonly' && offerAudio),
|
||||
offerToReceiveVideo: (_this.configuration.mode !== 'sendonly' && offerVideo)
|
||||
};
|
||||
console.debug('RTCPeerConnection constraints: ' + JSON.stringify(constraints));
|
||||
_this.pc.createOffer(constraints).then(function (offer) {
|
||||
|
@ -219,12 +231,6 @@ var WebRtcPeer = /** @class */ (function () {
|
|||
}
|
||||
});
|
||||
};
|
||||
WebRtcPeer.prototype.streamStop = function (stream) {
|
||||
stream.getTracks().forEach(function (track) {
|
||||
track.stop();
|
||||
stream.removeTrack(track);
|
||||
});
|
||||
};
|
||||
return WebRtcPeer;
|
||||
}());
|
||||
exports.WebRtcPeer = WebRtcPeer;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,6 +6,7 @@ export { StreamManager } from './OpenVidu/StreamManager';
|
|||
export { Stream } from './OpenVidu/Stream';
|
||||
export { Connection } from './OpenVidu/Connection';
|
||||
export { LocalRecorder } from './OpenVidu/LocalRecorder';
|
||||
export { Filter } from './OpenVidu/Filter';
|
||||
export { LocalRecorderState } from './OpenViduInternal/Enums/LocalRecorderState';
|
||||
export { OpenViduError } from './OpenViduInternal/Enums/OpenViduError';
|
||||
export { VideoInsertMode } from './OpenViduInternal/Enums/VideoInsertMode';
|
||||
|
@ -19,6 +20,7 @@ export { StreamEvent } from './OpenViduInternal/Events/StreamEvent';
|
|||
export { StreamManagerEvent } from './OpenViduInternal/Events/StreamManagerEvent';
|
||||
export { VideoElementEvent } from './OpenViduInternal/Events/VideoElementEvent';
|
||||
export { StreamPropertyChangedEvent } from './OpenViduInternal/Events/StreamPropertyChangedEvent';
|
||||
export { FilterEvent } from './OpenViduInternal/Events/FilterEvent';
|
||||
export { Capabilities } from './OpenViduInternal/Interfaces/Public/Capabilities';
|
||||
export { Device } from './OpenViduInternal/Interfaces/Public/Device';
|
||||
export { EventDispatcher } from './OpenViduInternal/Interfaces/Public/EventDispatcher';
|
||||
|
|
|
@ -16,6 +16,8 @@ var Connection_1 = require("./OpenVidu/Connection");
|
|||
exports.Connection = Connection_1.Connection;
|
||||
var LocalRecorder_1 = require("./OpenVidu/LocalRecorder");
|
||||
exports.LocalRecorder = LocalRecorder_1.LocalRecorder;
|
||||
var Filter_1 = require("./OpenVidu/Filter");
|
||||
exports.Filter = Filter_1.Filter;
|
||||
var LocalRecorderState_1 = require("./OpenViduInternal/Enums/LocalRecorderState");
|
||||
exports.LocalRecorderState = LocalRecorderState_1.LocalRecorderState;
|
||||
var OpenViduError_1 = require("./OpenViduInternal/Enums/OpenViduError");
|
||||
|
@ -42,4 +44,6 @@ var VideoElementEvent_1 = require("./OpenViduInternal/Events/VideoElementEvent")
|
|||
exports.VideoElementEvent = VideoElementEvent_1.VideoElementEvent;
|
||||
var StreamPropertyChangedEvent_1 = require("./OpenViduInternal/Events/StreamPropertyChangedEvent");
|
||||
exports.StreamPropertyChangedEvent = StreamPropertyChangedEvent_1.StreamPropertyChangedEvent;
|
||||
var FilterEvent_1 = require("./OpenViduInternal/Events/FilterEvent");
|
||||
exports.FilterEvent = FilterEvent_1.FilterEvent;
|
||||
//# sourceMappingURL=index.js.map
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,gDAA+C;AAAtC,8BAAA,QAAQ,CAAA;AACjB,8CAA6C;AAApC,4BAAA,OAAO,CAAA;AAChB,kDAAiD;AAAxC,gCAAA,SAAS,CAAA;AAClB,oDAAmD;AAA1C,kCAAA,UAAU,CAAA;AACnB,0DAAyD;AAAhD,wCAAA,aAAa,CAAA;AACtB,4CAA2C;AAAlC,0BAAA,MAAM,CAAA;AACf,oDAAmD;AAA1C,kCAAA,UAAU,CAAA;AACnB,0DAAyD;AAAhD,wCAAA,aAAa,CAAA;AAEtB,kFAAiF;AAAxE,kDAAA,kBA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Ac,CAAA;AACvB,+FAA8F;AAArF,8DAAA,wBAAwB,CAAA;AACjC,qEAAoE;AAA3D,oCAAA,WAAW,CAAA;AACpB,qEAAoE;AAA3D,oCAAA,WAAW,CAAA;AACpB,mFAAkF;AAAzE,kDAAA,kBAAkB,CAAA;AAC3B,iFAAgF;AAAvE,gDAAA,iBAAiB,CAAA;AAC1B,mGAAkG;AAAzF,kEAAA,0BAA0B,CAAA;AACnC,qEAAoE;AAA3D,oCAAA,WAAW,CAAA"}
|
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
|
@ -87,6 +87,7 @@ public class Connection {
|
|||
* Returns the geo location of the connection, with the following format:
|
||||
* <code>"CITY, COUNTRY"</code> (<code>"unknown"</code> if it wasn't possible to
|
||||
* locate it)
|
||||
* <i>(ONLY IN OPENVIDU PRO)</i>
|
||||
*/
|
||||
public String getLocation() {
|
||||
return location;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Session } from './Session';
|
||||
import { SessionProperties } from './SessionProperties';
|
||||
import { Recording } from './Recording';
|
||||
import { RecordingProperties } from './RecordingProperties';
|
||||
import { Session } from './Session';
|
||||
import { SessionProperties } from './SessionProperties';
|
||||
export declare class OpenVidu {
|
||||
private urlOpenViduServer;
|
||||
private Buffer;
|
||||
|
@ -110,6 +110,10 @@ export declare class OpenVidu {
|
|||
* This applies to any property or sub-property of any of the sessions locally stored in OpenVidu Node Client
|
||||
*/
|
||||
fetch(): Promise<boolean>;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
fetchWebRtc(): Promise<boolean>;
|
||||
private getBasicAuth;
|
||||
private setHostnameAndPort;
|
||||
/**
|
||||
|
|
|
@ -16,9 +16,10 @@
|
|||
*
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Session_1 = require("./Session");
|
||||
var Recording_1 = require("./Recording");
|
||||
var axios_1 = require("axios");
|
||||
var Publisher_1 = require("./Publisher");
|
||||
var Recording_1 = require("./Recording");
|
||||
var Session_1 = require("./Session");
|
||||
var OpenVidu = /** @class */ (function () {
|
||||
/**
|
||||
* @param urlOpenViduServer Public accessible IP where your instance of OpenVidu Server is up an running
|
||||
|
@ -357,12 +358,23 @@ var OpenVidu = /** @class */ (function () {
|
|||
var hasChanged_1 = false;
|
||||
res.data.content.forEach(function (session) {
|
||||
fetchedSessionIds_1.push(session.sessionId);
|
||||
var storedSession = _this.activeSessions.find(function (s) { return s.sessionId === session.sessionId; });
|
||||
var sessionIndex = -1;
|
||||
var storedSession = _this.activeSessions.find(function (s, index) {
|
||||
if (s.sessionId === session.sessionId) {
|
||||
sessionIndex = index;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if (!!storedSession) {
|
||||
var beforeJSON = JSON.stringify(storedSession);
|
||||
storedSession = storedSession.resetSessionWithJson(session);
|
||||
var afterJSON = JSON.stringify(storedSession);
|
||||
var changed = !(beforeJSON === afterJSON);
|
||||
var fetchedSession = new Session_1.Session().resetSessionWithJson(session);
|
||||
var changed = !storedSession.equalTo(fetchedSession);
|
||||
if (changed) {
|
||||
storedSession = fetchedSession;
|
||||
_this.activeSessions[sessionIndex] = storedSession;
|
||||
}
|
||||
console.log("Available session '" + storedSession.sessionId + "' info fetched. Any change: " + changed);
|
||||
hasChanged_1 = hasChanged_1 || changed;
|
||||
}
|
||||
|
@ -408,6 +420,182 @@ var OpenVidu = /** @class */ (function () {
|
|||
});
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
OpenVidu.prototype.fetchWebRtc = function () {
|
||||
var _this = this;
|
||||
// tslint:disable:no-string-literal
|
||||
var addWebRtcStatsToConnections = function (connection, connectionsExtendedInfo) {
|
||||
var connectionExtended = connectionsExtendedInfo.find(function (c) { return c.connectionId === connection.connectionId; });
|
||||
if (!!connectionExtended) {
|
||||
var publisherArray_1 = [];
|
||||
connection.publishers.forEach(function (pub) {
|
||||
var publisherExtended = connectionExtended.publishers.find(function (p) { return p.streamId === pub.streamId; });
|
||||
var pubAux = {};
|
||||
// Standard properties
|
||||
pubAux['streamId'] = pub.streamId;
|
||||
pubAux['createdAt'] = pub.createdAt;
|
||||
var mediaOptions = {
|
||||
audioActive: pub.audioActive,
|
||||
videoActive: pub.videoActive,
|
||||
hasAudio: pub.hasAudio,
|
||||
hasVideo: pub.hasVideo,
|
||||
typeOfVideo: pub.typeOfVideo,
|
||||
frameRate: pub.frameRate,
|
||||
videoDimensions: pub.videoDimensions
|
||||
};
|
||||
pubAux['mediaOptions'] = mediaOptions;
|
||||
var newPublisher = new Publisher_1.Publisher(pubAux);
|
||||
// WebRtc properties
|
||||
newPublisher['webRtc'] = {
|
||||
kms: {
|
||||
events: publisherExtended.events,
|
||||
localCandidate: publisherExtended.localCandidate,
|
||||
remoteCandidate: publisherExtended.remoteCandidate,
|
||||
receivedCandidates: publisherExtended.receivedCandidates,
|
||||
webrtcTagName: publisherExtended.webrtcTagName
|
||||
}
|
||||
};
|
||||
newPublisher['localCandidatePair'] = parseRemoteCandidatePair(newPublisher['webRtc'].kms.remoteCandidate);
|
||||
if (!!publisherExtended.serverStats) {
|
||||
newPublisher['webRtc'].kms.serverStats = publisherExtended.serverStats;
|
||||
}
|
||||
publisherArray_1.push(newPublisher);
|
||||
});
|
||||
var subscriberArray_1 = [];
|
||||
connection.subscribers.forEach(function (sub) {
|
||||
var subscriberExtended = connectionExtended.subscribers.find(function (s) { return s.streamId === sub; });
|
||||
var subAux = {};
|
||||
// Standard properties
|
||||
subAux['streamId'] = sub;
|
||||
subAux['publisher'] = subscriberExtended.publisher;
|
||||
// WebRtc properties
|
||||
subAux['createdAt'] = subscriberExtended.createdAt;
|
||||
subAux['webRtc'] = {
|
||||
kms: {
|
||||
events: subscriberExtended.events,
|
||||
localCandidate: subscriberExtended.localCandidate,
|
||||
remoteCandidate: subscriberExtended.remoteCandidate,
|
||||
receivedCandidates: subscriberExtended.receivedCandidates,
|
||||
webrtcTagName: subscriberExtended.webrtcTagName
|
||||
}
|
||||
};
|
||||
subAux['localCandidatePair'] = parseRemoteCandidatePair(subAux['webRtc'].kms.remoteCandidate);
|
||||
if (!!subscriberExtended.serverStats) {
|
||||
subAux['webRtc'].kms.serverStats = subscriberExtended.serverStats;
|
||||
}
|
||||
subscriberArray_1.push(subAux);
|
||||
});
|
||||
connection.publishers = publisherArray_1;
|
||||
connection.subscribers = subscriberArray_1;
|
||||
}
|
||||
};
|
||||
var parseRemoteCandidatePair = function (candidateStr) {
|
||||
if (!candidateStr) {
|
||||
return 'ERROR: No remote candidate available';
|
||||
}
|
||||
var array = candidateStr.split(/\s+/);
|
||||
return {
|
||||
portNumber: array[5],
|
||||
ipAddress: array[4],
|
||||
transport: array[2].toLowerCase(),
|
||||
candidateType: array[7],
|
||||
priority: array[3],
|
||||
raw: candidateStr
|
||||
};
|
||||
};
|
||||
return new Promise(function (resolve, reject) {
|
||||
axios_1.default.get('https://' + OpenVidu.hostname + ':' + OpenVidu.port + OpenVidu.API_SESSIONS + '?webRtcStats=true', {
|
||||
headers: {
|
||||
Authorization: OpenVidu.basicAuth
|
||||
}
|
||||
})
|
||||
.then(function (res) {
|
||||
if (res.status === 200) {
|
||||
// Array to store fetched sessionIds and later remove closed sessions
|
||||
var fetchedSessionIds_2 = [];
|
||||
// Boolean to store if any Session has changed
|
||||
var hasChanged_2 = false;
|
||||
res.data.content.forEach(function (session) {
|
||||
fetchedSessionIds_2.push(session.sessionId);
|
||||
var sessionIndex = -1;
|
||||
var storedSession = _this.activeSessions.find(function (s, index) {
|
||||
if (s.sessionId === session.sessionId) {
|
||||
sessionIndex = index;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if (!!storedSession) {
|
||||
var fetchedSession = new Session_1.Session().resetSessionWithJson(session);
|
||||
fetchedSession.activeConnections.forEach(function (connection) {
|
||||
addWebRtcStatsToConnections(connection, session.connections.content);
|
||||
});
|
||||
var changed_1 = !storedSession.equalTo(fetchedSession);
|
||||
if (!changed_1) { // Check if server webrtc information has changed in any Publisher object (Session.equalTo does not check Publisher.webRtc auxiliary object)
|
||||
fetchedSession.activeConnections.forEach(function (connection, index1) {
|
||||
for (var index2 = 0; (index2 < connection['publishers'].length && !changed_1); index2++) {
|
||||
changed_1 = changed_1 || JSON.stringify(connection['publishers'][index2]['webRtc']) !== JSON.stringify(storedSession.activeConnections[index1]['publishers'][index2]['webRtc']);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (changed_1) {
|
||||
storedSession = fetchedSession;
|
||||
_this.activeSessions[sessionIndex] = storedSession;
|
||||
}
|
||||
console.log("Available session '" + storedSession.sessionId + "' info fetched. Any change: " + changed_1);
|
||||
hasChanged_2 = hasChanged_2 || changed_1;
|
||||
}
|
||||
else {
|
||||
var newSession = new Session_1.Session(session);
|
||||
newSession.activeConnections.forEach(function (connection) {
|
||||
addWebRtcStatsToConnections(connection, session.connections.content);
|
||||
});
|
||||
_this.activeSessions.push(newSession);
|
||||
console.log("New session '" + session.sessionId + "' info fetched");
|
||||
hasChanged_2 = true;
|
||||
}
|
||||
});
|
||||
// Remove closed sessions from activeSessions array
|
||||
_this.activeSessions = _this.activeSessions.filter(function (session) {
|
||||
if (fetchedSessionIds_2.includes(session.sessionId)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
console.log("Removing closed session '" + session.sessionId + "'");
|
||||
hasChanged_2 = true;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
console.log('Active sessions info fetched: ', fetchedSessionIds_2);
|
||||
resolve(hasChanged_2);
|
||||
}
|
||||
else {
|
||||
// ERROR response from openvidu-server. Resolve HTTP status
|
||||
reject(new Error(res.status.toString()));
|
||||
}
|
||||
}).catch(function (error) {
|
||||
if (error.response) {
|
||||
// The request was made and the server responded with a status code (not 2xx)
|
||||
reject(new Error(error.response.status.toString()));
|
||||
}
|
||||
else if (error.request) {
|
||||
// The request was made but no response was received
|
||||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
// tslint:enable:no-string-literal
|
||||
OpenVidu.prototype.getBasicAuth = function (secret) {
|
||||
return 'Basic ' + this.Buffer('OPENVIDUAPP:' + secret).toString('base64');
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,6 +7,10 @@ export declare class Session {
|
|||
* Unique identifier of the Session
|
||||
*/
|
||||
sessionId: string;
|
||||
/**
|
||||
* Timestamp when this session was created, in UTC milliseconds (ms since Jan 1, 1970, 00:00:00 UTC)
|
||||
*/
|
||||
createdAt: number;
|
||||
/**
|
||||
* Properties defining the session
|
||||
*/
|
||||
|
@ -48,7 +52,9 @@ export declare class Session {
|
|||
close(): Promise<any>;
|
||||
/**
|
||||
* Updates every property of the Session with the current status it has in OpenVidu Server. This is especially useful for accessing the list of active
|
||||
* connections to the Session ([[Session.activeConnections]]) and use those values to call [[Session.forceDisconnect]] or [[Session.forceUnpublish]]
|
||||
* connections of the Session ([[Session.activeConnections]]) and use those values to call [[Session.forceDisconnect]] or [[Session.forceUnpublish]].
|
||||
*
|
||||
* To update every Session object owned by OpenVidu object, call [[OpenVidu.fetch]]
|
||||
*
|
||||
* @returns A promise resolved to true if the Session status has changed with respect to the server, or to false if not.
|
||||
* This applies to any property or sub-property of the Session object
|
||||
|
@ -82,4 +88,8 @@ export declare class Session {
|
|||
* @hidden
|
||||
*/
|
||||
resetSessionWithJson(json: any): Session;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
equalTo(other: Session): boolean;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
*
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var axios_1 = require("axios");
|
||||
var Connection_1 = require("./Connection");
|
||||
var MediaMode_1 = require("./MediaMode");
|
||||
var OpenVidu_1 = require("./OpenVidu");
|
||||
|
@ -23,7 +24,6 @@ var OpenViduRole_1 = require("./OpenViduRole");
|
|||
var Publisher_1 = require("./Publisher");
|
||||
var RecordingLayout_1 = require("./RecordingLayout");
|
||||
var RecordingMode_1 = require("./RecordingMode");
|
||||
var axios_1 = require("axios");
|
||||
var Session = /** @class */ (function () {
|
||||
/**
|
||||
* @hidden
|
||||
|
@ -80,7 +80,8 @@ var Session = /** @class */ (function () {
|
|||
var data = JSON.stringify({
|
||||
session: _this.sessionId,
|
||||
role: (!!tokenOptions && !!tokenOptions.role) ? tokenOptions.role : OpenViduRole_1.OpenViduRole.PUBLISHER,
|
||||
data: (!!tokenOptions && !!tokenOptions.data) ? tokenOptions.data : ''
|
||||
data: (!!tokenOptions && !!tokenOptions.data) ? tokenOptions.data : '',
|
||||
kurentoOptions: (!!tokenOptions && !!tokenOptions.kurentoOptions) ? tokenOptions.kurentoOptions : {},
|
||||
});
|
||||
axios_1.default.post('https://' + OpenVidu_1.OpenVidu.hostname + ':' + OpenVidu_1.OpenVidu.port + OpenVidu_1.OpenVidu.API_TOKENS, data, {
|
||||
headers: {
|
||||
|
@ -107,10 +108,12 @@ var Session = /** @class */ (function () {
|
|||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
reject(new Error(error.message));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -150,17 +153,21 @@ var Session = /** @class */ (function () {
|
|||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
reject(new Error(error.message));
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
/**
|
||||
* Updates every property of the Session with the current status it has in OpenVidu Server. This is especially useful for accessing the list of active
|
||||
* connections to the Session ([[Session.activeConnections]]) and use those values to call [[Session.forceDisconnect]] or [[Session.forceUnpublish]]
|
||||
* connections of the Session ([[Session.activeConnections]]) and use those values to call [[Session.forceDisconnect]] or [[Session.forceUnpublish]].
|
||||
*
|
||||
* To update every Session object owned by OpenVidu object, call [[OpenVidu.fetch]]
|
||||
*
|
||||
* @returns A promise resolved to true if the Session status has changed with respect to the server, or to false if not.
|
||||
* This applies to any property or sub-property of the Session object
|
||||
|
@ -198,10 +205,12 @@ var Session = /** @class */ (function () {
|
|||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
reject(new Error(error.message));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -243,7 +252,18 @@ var Session = /** @class */ (function () {
|
|||
if (!!connectionClosed_1) {
|
||||
connectionClosed_1.publishers.forEach(function (publisher) {
|
||||
_this.activeConnections.forEach(function (con) {
|
||||
con.subscribers = con.subscribers.filter(function (subscriber) { return subscriber !== publisher.streamId; });
|
||||
con.subscribers = con.subscribers.filter(function (subscriber) {
|
||||
// tslint:disable:no-string-literal
|
||||
if (!!subscriber['streamId']) {
|
||||
// Subscriber with advanced webRtc configuration properties
|
||||
return (subscriber['streamId'] !== publisher.streamId);
|
||||
// tslint:enable:no-string-literal
|
||||
}
|
||||
else {
|
||||
// Regular string subscribers
|
||||
return subscriber !== publisher.streamId;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -268,10 +288,12 @@ var Session = /** @class */ (function () {
|
|||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
reject(new Error(error.message));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -302,7 +324,18 @@ var Session = /** @class */ (function () {
|
|||
// Try to remove the Publisher from the Connection publishers collection
|
||||
connection.publishers = connection.publishers.filter(function (pub) { return pub.streamId !== streamId; });
|
||||
// Try to remove the Publisher from the Connection subscribers collection
|
||||
connection.subscribers = connection.subscribers.filter(function (sub) { return sub !== streamId; });
|
||||
if (!!connection.subscribers && connection.subscribers.length > 0) {
|
||||
// tslint:disable:no-string-literal
|
||||
if (!!connection.subscribers[0]['streamId']) {
|
||||
// Subscriber with advanced webRtc configuration properties
|
||||
connection.subscribers = connection.subscribers.filter(function (sub) { return sub['streamId'] !== streamId; });
|
||||
// tslint:enable:no-string-literal
|
||||
}
|
||||
else {
|
||||
// Regular string subscribers
|
||||
connection.subscribers = connection.subscribers.filter(function (sub) { return sub !== streamId; });
|
||||
}
|
||||
}
|
||||
});
|
||||
console.log("Stream '" + streamId + "' unpublished");
|
||||
resolve();
|
||||
|
@ -321,10 +354,12 @@ var Session = /** @class */ (function () {
|
|||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
reject(new Error(error.message));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -355,6 +390,7 @@ var Session = /** @class */ (function () {
|
|||
if (res.status === 200) {
|
||||
// SUCCESS response from openvidu-server. Resolve token
|
||||
_this.sessionId = res.data.id;
|
||||
_this.createdAt = res.data.createdAt;
|
||||
resolve(_this.sessionId);
|
||||
}
|
||||
else {
|
||||
|
@ -378,10 +414,12 @@ var Session = /** @class */ (function () {
|
|||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
}
|
||||
else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
reject(new Error(error.message));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -392,6 +430,7 @@ var Session = /** @class */ (function () {
|
|||
Session.prototype.resetSessionWithJson = function (json) {
|
||||
var _this = this;
|
||||
this.sessionId = json.sessionId;
|
||||
this.createdAt = json.createdAt;
|
||||
this.recording = json.recording;
|
||||
var customSessionId;
|
||||
var defaultCustomLayout;
|
||||
|
@ -407,6 +446,9 @@ var Session = /** @class */ (function () {
|
|||
if (!!customSessionId) {
|
||||
this.properties.customSessionId = customSessionId;
|
||||
}
|
||||
else if (!!json.customSessionId) {
|
||||
this.properties.customSessionId = json.customSessionId;
|
||||
}
|
||||
if (!!defaultCustomLayout) {
|
||||
this.properties.defaultCustomLayout = defaultCustomLayout;
|
||||
}
|
||||
|
@ -420,10 +462,33 @@ var Session = /** @class */ (function () {
|
|||
connection.subscribers.forEach(function (subscriber) {
|
||||
subscribers.push(subscriber.streamId);
|
||||
});
|
||||
_this.activeConnections.push(new Connection_1.Connection(connection.connectionId, connection.role, connection.token, connection.serverData, connection.clientData, publishers, subscribers));
|
||||
_this.activeConnections.push(new Connection_1.Connection(connection.connectionId, connection.createdAt, connection.role, connection.token, connection.location, connection.platform, connection.serverData, connection.clientData, publishers, subscribers));
|
||||
});
|
||||
// Order connections by time of creation
|
||||
this.activeConnections.sort(function (c1, c2) { return (c1.createdAt > c2.createdAt) ? 1 : ((c2.createdAt > c1.createdAt) ? -1 : 0); });
|
||||
return this;
|
||||
};
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
Session.prototype.equalTo = function (other) {
|
||||
var equals = (this.sessionId === other.sessionId &&
|
||||
this.createdAt === other.createdAt &&
|
||||
this.recording === other.recording &&
|
||||
this.activeConnections.length === other.activeConnections.length &&
|
||||
JSON.stringify(this.properties) === JSON.stringify(other.properties));
|
||||
if (equals) {
|
||||
var i = 0;
|
||||
while (equals && i < this.activeConnections.length) {
|
||||
equals = this.activeConnections[i].equalTo(other.activeConnections[i]);
|
||||
i++;
|
||||
}
|
||||
return equals;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
return Session;
|
||||
}());
|
||||
exports.Session = Session;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,4 +14,32 @@ export interface TokenOptions {
|
|||
* The role assigned to this token
|
||||
*/
|
||||
role?: OpenViduRole;
|
||||
/**
|
||||
* **WARNING**: experimental option. This interface may change in the near future
|
||||
*
|
||||
* Some advanced properties setting the configuration that the WebRTC streams of the user owning the token will have in Kurento Media Server.
|
||||
* You can adjust:
|
||||
* - `videoMaxRecvBandwidth`: maximum number of Kbps that the client owning the token will be able to receive from Kurento Media Server. 0 means unconstrained. Giving a value to this property will override
|
||||
* the global configuration set in [OpenVidu Server configuration](https://openvidu.io/docs/reference-docs/openvidu-server-params/#list-of-configuration-parameters-when-launching-openvidu-server)
|
||||
* (parameter `openvidu.streams.video.max-recv-bandwidth`) for every incoming stream of the user owning the token.
|
||||
* _**WARNING**: the lower value set to this property limits every other bandwidth of the WebRTC pipeline this server-to-client stream belongs to. This includes the user publishing the stream and every other user subscribed to the stream_
|
||||
* - `videoMinRecvBandwidth`: minimum number of Kbps that the client owning the token will try to receive from Kurento Media Server. 0 means unconstrained. Giving a value to this property will override
|
||||
* the global configuration set in [OpenVidu Server configuration](https://openvidu.io/docs/reference-docs/openvidu-server-params/#list-of-configuration-parameters-when-launching-openvidu-server)
|
||||
* (parameter `openvidu.streams.video.min-recv-bandwidth`) for every incoming stream of the user owning the token
|
||||
* - `videoMaxSendBandwidth`: maximum number of Kbps that the client owning the token will be able to send to Kurento Media Server. 0 means unconstrained. Giving a value to this property will override
|
||||
* the global configuration set in [OpenVidu Server configuration](https://openvidu.io/docs/reference-docs/openvidu-server-params/#list-of-configuration-parameters-when-launching-openvidu-server)
|
||||
* (parameter `openvidu.streams.video.max-send-bandwidth`) for every outgoing stream of the user owning the token.
|
||||
* _**WARNING**: this value limits every other bandwidth of the WebRTC pipeline this client-to-server stream belongs to. This includes every other user subscribed to the stream_
|
||||
* - `videoMinSendBandwidth`: minimum number of Kbps that the client owning the token will try to send to Kurento Media Server. 0 means unconstrained. Giving a value to this property will override
|
||||
* the global configuration set in [OpenVidu Server configuration](https://openvidu.io/docs/reference-docs/openvidu-server-params/#list-of-configuration-parameters-when-launching-openvidu-server)
|
||||
* (parameter `openvidu.streams.video.min-send-bandwidth`) for every outgoing stream of the user owning the token
|
||||
* - `allowedFilters`: names of the filters the user owning the token will be able to apply. See [Voice and video filters](https://openvidu.io/docs/advanced-features/filters/)
|
||||
*/
|
||||
kurentoOptions?: {
|
||||
videoMaxRecvBandwidth?: number;
|
||||
videoMinRecvBandwidth?: number;
|
||||
videoMaxSendBandwidth?: number;
|
||||
videoMinSendBandwidth?: number;
|
||||
allowedFilters?: string[];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ export class Connection {
|
|||
|
||||
/**
|
||||
* Geo location of the connection, with the following format: `"CITY, COUNTRY"` (`"unknown"` if it wasn't possible to locate it)
|
||||
* _(ONLY IN OPENVIDU PRO)_
|
||||
*/
|
||||
location: string;
|
||||
|
||||
|
|
Loading…
Reference in New Issue