@rtsee/presentation-signaling-client 0.0.62 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/presentation-signaling-client/src/models/RTSeePresentationSignalingClient.d.ts +10 -0
- package/dist/presentation-signaling-client/src/models/RTSeePresentationSignalingClient.d.ts.map +1 -1
- package/dist/presentation-signaling-client/src/models/RTSeePresentationSignalingClient.js +30 -2
- package/dist/presentation-signaling-client/src/models/RTSeePresentationSignalingClient.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { IRTSeeSignalClientOptions, RTSeeSignalingClientBase } from "@rtsee/signaling-client";
|
|
2
2
|
import { IRTSeeElements } from "@rtsee/core";
|
|
3
|
+
import { IPresentationRoom } from "@rtsee/common";
|
|
4
|
+
import { RTSeeMessenger } from "@rtsee/messenger";
|
|
5
|
+
import { RTSeeConference } from "@rtsee/conference";
|
|
6
|
+
import { RTSeePresentation } from "@rtsee/presentation";
|
|
3
7
|
export declare class RTSeePresentationSignalingClient extends RTSeeSignalingClientBase {
|
|
8
|
+
messenger: RTSeeMessenger;
|
|
9
|
+
conference: RTSeeConference;
|
|
10
|
+
presentation: RTSeePresentation;
|
|
4
11
|
constructor(options: IRTSeeSignalClientOptions);
|
|
5
12
|
connect(options: IRTSeeElements): void;
|
|
6
13
|
attachLocalEvents(): void;
|
|
7
14
|
attachRemoteEvents(): void;
|
|
15
|
+
onRoomsFetched(rooms: IPresentationRoom[]): void;
|
|
16
|
+
onRoomCreated(room: IPresentationRoom): void;
|
|
17
|
+
onJoinRoomConfirmed(room: IPresentationRoom): void;
|
|
8
18
|
}
|
|
9
19
|
//# sourceMappingURL=RTSeePresentationSignalingClient.d.ts.map
|
package/dist/presentation-signaling-client/src/models/RTSeePresentationSignalingClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeePresentationSignalingClient.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeePresentationSignalingClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAE,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"RTSeePresentationSignalingClient.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeePresentationSignalingClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAE,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,iBAAiB,EAAqD,MAAM,eAAe,CAAC;AACpG,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,qBAAa,gCAAiC,SAAQ,wBAAwB;IAC5E,SAAS,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,iBAAiB,CAAC;gBAEpB,OAAO,EAAE,yBAAyB;IAI9C,OAAO,CAAC,OAAO,EAAE,cAAc;IAY/B,iBAAiB;IAIjB,kBAAkB;IAalB,cAAc,CAAC,KAAK,EAAE,iBAAiB,EAAE;IAIzC,aAAa,CAAC,IAAI,EAAE,iBAAiB;IAIrC,mBAAmB,CAAC,IAAI,EAAE,iBAAiB;CAI5C"}
|
|
@@ -17,17 +17,45 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.RTSeePresentationSignalingClient = void 0;
|
|
19
19
|
var signaling_client_1 = require("@rtsee/signaling-client");
|
|
20
|
+
var common_1 = require("@rtsee/common");
|
|
20
21
|
var RTSeePresentationSignalingClient = /** @class */ (function (_super) {
|
|
21
22
|
__extends(RTSeePresentationSignalingClient, _super);
|
|
22
23
|
function RTSeePresentationSignalingClient(options) {
|
|
23
24
|
return _super.call(this, options) || this;
|
|
24
25
|
}
|
|
25
26
|
RTSeePresentationSignalingClient.prototype.connect = function (options) {
|
|
26
|
-
|
|
27
|
+
if (options.messenger) {
|
|
28
|
+
this.messenger = options.messenger;
|
|
29
|
+
}
|
|
30
|
+
if (options.conference) {
|
|
31
|
+
this.conference = options.conference;
|
|
32
|
+
}
|
|
33
|
+
if (options.presentation) {
|
|
34
|
+
this.presentation = options.presentation;
|
|
35
|
+
}
|
|
27
36
|
};
|
|
28
37
|
RTSeePresentationSignalingClient.prototype.attachLocalEvents = function () {
|
|
29
38
|
};
|
|
30
|
-
RTSeePresentationSignalingClient.prototype.attachRemoteEvents = function () {
|
|
39
|
+
RTSeePresentationSignalingClient.prototype.attachRemoteEvents = function () {
|
|
40
|
+
var _this = this;
|
|
41
|
+
this.connection.socket
|
|
42
|
+
.on(common_1.PresentationSignalingEvents.ROOMS_FETCHED, function (rooms) { return _this.onRoomsFetched(rooms); });
|
|
43
|
+
this.connection.socket
|
|
44
|
+
.on(common_1.PresentationSignalingEvents.ROOM_CREATED, function (room) { return _this.onRoomCreated(room); });
|
|
45
|
+
this.connection.socket
|
|
46
|
+
.on(common_1.PresentationSignalingEvents.ROOM_JOIN_CONFIRMED, function (options) { return _this.onJoinRoomConfirmed(options.room); });
|
|
47
|
+
this.connection.socket
|
|
48
|
+
.on(common_1.PresentationSignalingEvents.SLIDE_NAV_EVENT, function (options) { return _this.presentation.onSlideNavEvent(options); });
|
|
49
|
+
};
|
|
50
|
+
RTSeePresentationSignalingClient.prototype.onRoomsFetched = function (rooms) {
|
|
51
|
+
this.presentation.onRoomsFetched(rooms);
|
|
52
|
+
};
|
|
53
|
+
RTSeePresentationSignalingClient.prototype.onRoomCreated = function (room) {
|
|
54
|
+
this.presentation.onRoomCreated(room);
|
|
55
|
+
};
|
|
56
|
+
RTSeePresentationSignalingClient.prototype.onJoinRoomConfirmed = function (room) {
|
|
57
|
+
this.presentation.setActiveRoom(room);
|
|
58
|
+
};
|
|
31
59
|
return RTSeePresentationSignalingClient;
|
|
32
60
|
}(signaling_client_1.RTSeeSignalingClientBase));
|
|
33
61
|
exports.RTSeePresentationSignalingClient = RTSeePresentationSignalingClient;
|
package/dist/presentation-signaling-client/src/models/RTSeePresentationSignalingClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeePresentationSignalingClient.js","sourceRoot":"","sources":["../../../../src/models/RTSeePresentationSignalingClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4DAA4F;
|
|
1
|
+
{"version":3,"file":"RTSeePresentationSignalingClient.js","sourceRoot":"","sources":["../../../../src/models/RTSeePresentationSignalingClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4DAA4F;AAE5F,wCAAoG;AAKpG;IAAsD,oDAAwB;IAK5E,0CAAY,OAAkC;eAC5C,kBAAM,OAAO,CAAC;IAChB,CAAC;IAED,kDAAO,GAAP,UAAQ,OAAuB;QAC7B,IAAI,OAAO,CAAC,SAAS,EAAE;YACrB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAA2B,CAAC;SACtD;QACD,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAA6B,CAAC;SACzD;QACD,IAAI,OAAO,CAAC,YAAY,EAAE;YACxB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAiC,CAAC;SAC/D;IACH,CAAC;IAED,4DAAiB,GAAjB;IAEA,CAAC;IAED,6DAAkB,GAAlB;QAAA,iBAWC;QAVC,IAAI,CAAC,UAAU,CAAC,MAAM;aACnB,EAAE,CAAC,oCAA2B,CAAC,aAAa,EAAE,UAAC,KAA0B,IAAK,OAAA,KAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAC,CAAC;QAC7G,IAAI,CAAC,UAAU,CAAC,MAAM;aACnB,EAAE,CAAC,oCAA2B,CAAC,YAAY,EAAE,UAAC,IAAuB,IAAK,OAAA,KAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAxB,CAAwB,CAAC,CAAC;QACvG,IAAI,CAAC,UAAU,CAAC,MAAM;aACnB,EAAE,CAAC,oCAA2B,CAAC,mBAAmB,EACjD,UAAC,OAAkC,IAAK,OAAA,KAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAtC,CAAsC,CAAC,CAAC;QACpF,IAAI,CAAC,UAAU,CAAC,MAAM;aACnB,EAAE,CAAC,oCAA2B,CAAC,eAAe,EAC7C,UAAC,OAA8B,IAAK,OAAA,KAAI,CAAC,YAAY,CAAC,eAAe,CAAC,OAAO,CAAC,EAA1C,CAA0C,CAAC,CAAC;IACtF,CAAC;IAED,yDAAc,GAAd,UAAe,KAA0B;QACvC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,wDAAa,GAAb,UAAc,IAAuB;QACnC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,8DAAmB,GAAnB,UAAoB,IAAuB;QACzC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAEH,uCAAC;AAAD,CAAC,AAlDD,CAAsD,2CAAwB,GAkD7E;AAlDY,4EAAgC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rtsee/presentation-signaling-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/presentation-signaling-client/src/index",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "94294171e8762f5cd23d07033cfb328dd58b9c3b"
|
|
34
34
|
}
|