mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: updated static lib folder with new files
parent
ce7a6c73c9
commit
fb14ed5863
42
openvidu-browser/lib/OpenViduInternal/Events/StreamPropertyChangedEvent.d.ts
vendored
Normal file
42
openvidu-browser/lib/OpenViduInternal/Events/StreamPropertyChangedEvent.d.ts
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
import { Event } from './Event';
|
||||
import { Session } from '../../OpenVidu/Session';
|
||||
import { Stream } from '../../OpenVidu/Stream';
|
||||
import { StreamManager } from '../../OpenVidu/StreamManager';
|
||||
/**
|
||||
* Defines event `streamPropertyChanged` dispatched by [[Session]] as well as by [[StreamManager]] ([[Publisher]] and [[Subscriber]]).
|
||||
* This event is fired when any remote stream (owned by a Subscriber) or local stream (owned by a Publisher) undergoes
|
||||
* any change in any of its mutable properties (see [[changedProperty]]).
|
||||
*/
|
||||
export declare class StreamPropertyChangedEvent extends Event {
|
||||
/**
|
||||
* The Stream whose property has changed. You can always identify the user publishing the changed stream by consulting property [[Stream.connection]]
|
||||
*/
|
||||
stream: Stream;
|
||||
/**
|
||||
* The property of the stream that changed. This value is either `"videoActive"`, `"audioActive"` or `"videoDimensions"`
|
||||
*/
|
||||
changedProperty: string;
|
||||
/**
|
||||
* Cause of the change on the stream's property:
|
||||
* - For `videoActive`: `"publishVideo"`
|
||||
* - For `audioActive`: `"publishAudio"`
|
||||
* - For `videoDimensions`: `"deviceRotated"` or `"screenResized"`
|
||||
*/
|
||||
reason: string;
|
||||
/**
|
||||
* New value of the property (after change, current value)
|
||||
*/
|
||||
newValue: Object;
|
||||
/**
|
||||
* Previous value of the property (before change)
|
||||
*/
|
||||
oldValue: Object;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(target: Session | StreamManager, stream: Stream, changedProperty: string, newValue: Object, oldValue: Object, reason: string);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
callDefaultBehavior(): void;
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
"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 = 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 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 event `streamPropertyChanged` dispatched by [[Session]] as well as by [[StreamManager]] ([[Publisher]] and [[Subscriber]]).
|
||||
* This event is fired when any remote stream (owned by a Subscriber) or local stream (owned by a Publisher) undergoes
|
||||
* any change in any of its mutable properties (see [[changedProperty]]).
|
||||
*/
|
||||
var StreamPropertyChangedEvent = /** @class */ (function (_super) {
|
||||
__extends(StreamPropertyChangedEvent, _super);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
function StreamPropertyChangedEvent(target, stream, changedProperty, newValue, oldValue, reason) {
|
||||
var _this = _super.call(this, false, target, 'streamPropertyChanged') || this;
|
||||
_this.stream = stream;
|
||||
_this.changedProperty = changedProperty;
|
||||
_this.newValue = newValue;
|
||||
_this.oldValue = oldValue;
|
||||
_this.reason = reason;
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
// tslint:disable-next-line:no-empty
|
||||
StreamPropertyChangedEvent.prototype.callDefaultBehavior = function () { };
|
||||
return StreamPropertyChangedEvent;
|
||||
}(Event_1.Event));
|
||||
exports.StreamPropertyChangedEvent = StreamPropertyChangedEvent;
|
||||
//# sourceMappingURL=StreamPropertyChangedEvent.js.map
|
|
@ -0,0 +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"}
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* See [[Session.capabilities]]
|
||||
*/
|
||||
export interface Capabilities {
|
||||
/**
|
||||
* `true` if the client can call [[Session.forceDisconnect]], `false` if not
|
||||
*/
|
||||
forceDisconnect: boolean;
|
||||
/**
|
||||
* `true` if the client can call [[Session.forceUnpublish]], `false` if not
|
||||
*/
|
||||
forceUnpublish: boolean;
|
||||
/**
|
||||
* `true` if the client can call [[Session.publish]], `false` if not
|
||||
*/
|
||||
publish: boolean;
|
||||
/**
|
||||
* `true` if the client can call [[Session.subscribe]], `false` if not (true for every user for now)
|
||||
*/
|
||||
subscribe: boolean;
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
"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;
|
||||
//# sourceMappingURL=Capabilities.js.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Capabilities.js","sourceRoot":"","sources":["../../../../src/OpenViduInternal/Interfaces/Public/Capabilities.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"}
|
Loading…
Reference in New Issue