@rtsee/conference 0.0.1
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/conference/src/index.d.ts +3 -0
- package/dist/conference/src/index.d.ts.map +1 -0
- package/dist/conference/src/index.js +15 -0
- package/dist/conference/src/index.js.map +1 -0
- package/dist/conference/src/interfaces/DisplayMedia.d.ts +7 -0
- package/dist/conference/src/interfaces/DisplayMedia.d.ts.map +1 -0
- package/dist/conference/src/interfaces/DisplayMedia.js +3 -0
- package/dist/conference/src/interfaces/DisplayMedia.js.map +1 -0
- package/dist/conference/src/interfaces/Handshake.d.ts +31 -0
- package/dist/conference/src/interfaces/Handshake.d.ts.map +1 -0
- package/dist/conference/src/interfaces/Handshake.js +3 -0
- package/dist/conference/src/interfaces/Handshake.js.map +1 -0
- package/dist/conference/src/interfaces/PeerMessage.d.ts +23 -0
- package/dist/conference/src/interfaces/PeerMessage.d.ts.map +1 -0
- package/dist/conference/src/interfaces/PeerMessage.js +3 -0
- package/dist/conference/src/interfaces/PeerMessage.js.map +1 -0
- package/dist/conference/src/interfaces/RTSeeConferenceOptions.d.ts +12 -0
- package/dist/conference/src/interfaces/RTSeeConferenceOptions.d.ts.map +1 -0
- package/dist/conference/src/interfaces/RTSeeConferenceOptions.js +3 -0
- package/dist/conference/src/interfaces/RTSeeConferenceOptions.js.map +1 -0
- package/dist/conference/src/interfaces/RTSeeConferenceSignalingClient.d.ts +10 -0
- package/dist/conference/src/interfaces/RTSeeConferenceSignalingClient.d.ts.map +1 -0
- package/dist/conference/src/interfaces/RTSeeConferenceSignalingClient.js +3 -0
- package/dist/conference/src/interfaces/RTSeeConferenceSignalingClient.js.map +1 -0
- package/dist/conference/src/interfaces/RTSeeConferenceUiControlsOptions.d.ts +4 -0
- package/dist/conference/src/interfaces/RTSeeConferenceUiControlsOptions.d.ts.map +1 -0
- package/dist/conference/src/interfaces/RTSeeConferenceUiControlsOptions.js +3 -0
- package/dist/conference/src/interfaces/RTSeeConferenceUiControlsOptions.js.map +1 -0
- package/dist/conference/src/interfaces/SoundMeterOptions.d.ts +4 -0
- package/dist/conference/src/interfaces/SoundMeterOptions.d.ts.map +1 -0
- package/dist/conference/src/interfaces/SoundMeterOptions.js +3 -0
- package/dist/conference/src/interfaces/SoundMeterOptions.js.map +1 -0
- package/dist/conference/src/interfaces/index.d.ts +9 -0
- package/dist/conference/src/interfaces/index.d.ts.map +1 -0
- package/dist/conference/src/interfaces/index.js +21 -0
- package/dist/conference/src/interfaces/index.js.map +1 -0
- package/dist/conference/src/models/RTSeeConference.d.ts +80 -0
- package/dist/conference/src/models/RTSeeConference.d.ts.map +1 -0
- package/dist/conference/src/models/RTSeeConference.js +599 -0
- package/dist/conference/src/models/RTSeeConference.js.map +1 -0
- package/dist/conference/src/models/RTSeePeerConnection.d.ts +46 -0
- package/dist/conference/src/models/RTSeePeerConnection.d.ts.map +1 -0
- package/dist/conference/src/models/RTSeePeerConnection.js +131 -0
- package/dist/conference/src/models/RTSeePeerConnection.js.map +1 -0
- package/dist/conference/src/models/RTSeePeerConnectionsList.d.ts +21 -0
- package/dist/conference/src/models/RTSeePeerConnectionsList.d.ts.map +1 -0
- package/dist/conference/src/models/RTSeePeerConnectionsList.js +106 -0
- package/dist/conference/src/models/RTSeePeerConnectionsList.js.map +1 -0
- package/dist/conference/src/models/RTSeeUiControls.d.ts +9 -0
- package/dist/conference/src/models/RTSeeUiControls.d.ts.map +1 -0
- package/dist/conference/src/models/RTSeeUiControls.js +25 -0
- package/dist/conference/src/models/RTSeeUiControls.js.map +1 -0
- package/dist/conference/src/models/SoundMeter.d.ts +18 -0
- package/dist/conference/src/models/SoundMeter.d.ts.map +1 -0
- package/dist/conference/src/models/SoundMeter.js +61 -0
- package/dist/conference/src/models/SoundMeter.js.map +1 -0
- package/dist/conference/src/models/index.d.ts +6 -0
- package/dist/conference/src/models/index.d.ts.map +1 -0
- package/dist/conference/src/models/index.js +18 -0
- package/dist/conference/src/models/index.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./models"), exports);
|
|
14
|
+
__exportStar(require("./interfaces"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface IMediaDevicesWithDisplay extends MediaDevices {
|
|
2
|
+
getDisplayMedia: () => Promise<MediaStream>;
|
|
3
|
+
}
|
|
4
|
+
export interface HTMLAudioWithDeviceSelection extends HTMLVideoElement {
|
|
5
|
+
setSinkId: (deviceId: string) => Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=DisplayMedia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayMedia.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/DisplayMedia.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,eAAe,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACpE,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayMedia.js","sourceRoot":"","sources":["../../../../src/interfaces/DisplayMedia.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IPeer } from "@rtsee/core";
|
|
2
|
+
export interface IRemoteHandshakeEventData {
|
|
3
|
+
clientId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ISdp {
|
|
6
|
+
sdp: string;
|
|
7
|
+
isScreenShare?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IRemoteAnswerData extends ISdp, IRemoteHandshakeEventData {
|
|
10
|
+
}
|
|
11
|
+
export interface IRemoteOfferData extends ISdp, IRemoteHandshakeEventData, IPeer {
|
|
12
|
+
}
|
|
13
|
+
export interface IRemoteIceData extends IRemoteHandshakeEventData, RTCIceCandidateInit {
|
|
14
|
+
isScreenShare?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface IRemoteDeviceStateChangeData extends IPeer {
|
|
17
|
+
deviceOn: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IRemoteHandshakeEvent {
|
|
20
|
+
data: IRemoteHandshakeEventData;
|
|
21
|
+
}
|
|
22
|
+
export interface IRemoteIceCandidate {
|
|
23
|
+
data: IRemoteIceData;
|
|
24
|
+
}
|
|
25
|
+
export interface IRemoteOffer extends IRemoteHandshakeEventData {
|
|
26
|
+
data: IRemoteOfferData;
|
|
27
|
+
}
|
|
28
|
+
export interface IRemoteAnswer extends IRemoteHandshakeEventData {
|
|
29
|
+
data: IRemoteAnswerData;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Handshake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Handshake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/Handshake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,EAAE,yBAAyB;CAAG;AAC7E,MAAM,WAAW,gBACf,SAAQ,IAAI,EACV,yBAAyB,EACzB,KAAK;CAAG;AACZ,MAAM,WAAW,cACf,SAAQ,yBAAyB,EAC/B,mBAAmB;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AACD,MAAM,WAAW,4BAA6B,SAAQ,KAAK;IACzD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,yBAAyB;IAC7D,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D,IAAI,EAAE,iBAAiB,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Handshake.js","sourceRoot":"","sources":["../../../../src/interfaces/Handshake.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RTSeeEvents } from "@rtsee/core";
|
|
2
|
+
export interface IPeerMessage {
|
|
3
|
+
name: RTSeeEvents;
|
|
4
|
+
}
|
|
5
|
+
export interface IAddresseesData {
|
|
6
|
+
roomId?: string;
|
|
7
|
+
from: string;
|
|
8
|
+
to?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IPeerMessageData extends IAddresseesData {
|
|
11
|
+
sdp: string;
|
|
12
|
+
isScreenShare: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface IDeviceToggleData extends IAddresseesData {
|
|
15
|
+
deviceOn: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ISDPExchangeMessage extends IPeerMessage {
|
|
18
|
+
data: IPeerMessageData;
|
|
19
|
+
}
|
|
20
|
+
export interface IDeviceStateChangedMessage extends IPeerMessage {
|
|
21
|
+
data: IDeviceToggleData;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=PeerMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerMessage.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/PeerMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAC;CAEnB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,IAAI,EAAE,iBAAiB,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerMessage.js","sourceRoot":"","sources":["../../../../src/interfaces/PeerMessage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRTSeeCoreOptions, IRTSeeMessenger } from "@rtsee/core";
|
|
2
|
+
import { IRTSeeConferenceSignalingClient, IRTSeeUiControlsOptions } from "@rtsee/conference";
|
|
3
|
+
export interface IRTSeeConferenceOptions extends IRTSeeCoreOptions {
|
|
4
|
+
roomId?: string;
|
|
5
|
+
clientId?: string;
|
|
6
|
+
constraints?: MediaStreamConstraints;
|
|
7
|
+
rtcConfiguration?: RTCConfiguration;
|
|
8
|
+
uiControls?: IRTSeeUiControlsOptions;
|
|
9
|
+
signalingClient?: IRTSeeConferenceSignalingClient;
|
|
10
|
+
messengerClient?: IRTSeeMessenger;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=RTSeeConferenceOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConferenceOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeConferenceOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,+BAA+B,EAC/B,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,eAAe,CAAC,EAAE,+BAA+B,CAAC;IAClD,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConferenceOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeConferenceOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Socket } from "socket.io-client";
|
|
2
|
+
import { IPeer, IRTSeeSignalingClientBase } from "@rtsee/core";
|
|
3
|
+
export interface IJoinCallMessageData extends IPeer {
|
|
4
|
+
roomId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IRTSeeConferenceSignalingClient extends IRTSeeSignalingClientBase {
|
|
7
|
+
joinCall: (roomId: string, data: IJoinCallMessageData) => void;
|
|
8
|
+
socket?: Socket;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=RTSeeConferenceSignalingClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConferenceSignalingClient.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeConferenceSignalingClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,WAAW,oBAAqB,SAAQ,KAAK;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BACf,SAAQ,yBAAyB;IACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConferenceSignalingClient.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeConferenceSignalingClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConferenceUiControlsOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeConferenceUiControlsOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConferenceUiControlsOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeConferenceUiControlsOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoundMeterOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/SoundMeterOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,WAAW,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoundMeterOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/SoundMeterOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./DisplayMedia";
|
|
2
|
+
export * from "./Handshake";
|
|
3
|
+
export * from "./PeerMessage";
|
|
4
|
+
export * from "../../../core/src/interfaces/RTSeeClientSocketConnection";
|
|
5
|
+
export * from "./RTSeeConferenceOptions";
|
|
6
|
+
export * from "./RTSeeConferenceUiControlsOptions";
|
|
7
|
+
export * from "./SoundMeterOptions";
|
|
8
|
+
export * from "./RTSeeConferenceSignalingClient";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,0DAA0D,CAAC;AACzE,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./DisplayMedia"), exports);
|
|
14
|
+
__exportStar(require("./Handshake"), exports);
|
|
15
|
+
__exportStar(require("./PeerMessage"), exports);
|
|
16
|
+
__exportStar(require("../../../core/src/interfaces/RTSeeClientSocketConnection"), exports);
|
|
17
|
+
__exportStar(require("./RTSeeConferenceOptions"), exports);
|
|
18
|
+
__exportStar(require("./RTSeeConferenceUiControlsOptions"), exports);
|
|
19
|
+
__exportStar(require("./SoundMeterOptions"), exports);
|
|
20
|
+
__exportStar(require("./RTSeeConferenceSignalingClient"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,2FAAyE;AACzE,2DAAyC;AACzC,qEAAmD;AACnD,sDAAoC;AACpC,mEAAiD"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { IPeer, IRTSeeCallOptions, IRTSeeConference, IRTSeeMessenger, RTSeeCore } from "@rtsee/core";
|
|
2
|
+
import { RTSeeUiControls } from "./RTSeeUiControls";
|
|
3
|
+
import { IRemoteIceData, IRemoteOfferData, IRTSeeConferenceOptions, IRTSeeConferenceSignalingClient, IRTSeeUiControlsOptions, RTSeePeerConnection, RTSeePeerConnectionsList } from "@rtsee/conference";
|
|
4
|
+
export declare class RTSeeConference extends RTSeeCore implements IRTSeeConference {
|
|
5
|
+
rtcPeerConnections: RTSeePeerConnectionsList;
|
|
6
|
+
screenSharePeers: RTSeePeerConnectionsList;
|
|
7
|
+
screenSharePeer?: RTSeePeerConnection;
|
|
8
|
+
localStream?: MediaStream;
|
|
9
|
+
localScreenStream?: MediaStream;
|
|
10
|
+
microphone?: boolean;
|
|
11
|
+
camera?: boolean;
|
|
12
|
+
signalingClient: IRTSeeConferenceSignalingClient;
|
|
13
|
+
roomId: string;
|
|
14
|
+
uiControls: RTSeeUiControls;
|
|
15
|
+
isPresenter?: boolean;
|
|
16
|
+
audioElement: HTMLAudioElement;
|
|
17
|
+
audioOutputDeviceId: string;
|
|
18
|
+
audioInputDevices?: MediaDeviceInfo[];
|
|
19
|
+
audioOutputDevices?: MediaDeviceInfo[];
|
|
20
|
+
videoInputDevices?: MediaDeviceInfo[];
|
|
21
|
+
activeSpeakerIntervalId?: number;
|
|
22
|
+
messengerClient?: IRTSeeMessenger;
|
|
23
|
+
private constraints;
|
|
24
|
+
private rtcConfiguration?;
|
|
25
|
+
constructor(options?: IRTSeeConferenceOptions);
|
|
26
|
+
init(options: IRTSeeConferenceOptions): void;
|
|
27
|
+
attachMessenger(messengerClient: IRTSeeMessenger): void;
|
|
28
|
+
onReady(): void;
|
|
29
|
+
startActiveSpeakerInterval(): void;
|
|
30
|
+
stopActiveSpeakerInterval(): void;
|
|
31
|
+
initControls(uiControls?: IRTSeeUiControlsOptions): void;
|
|
32
|
+
applyConstraints(constraints: MediaStreamConstraints): void;
|
|
33
|
+
getUserMedia(): Promise<MediaStream>;
|
|
34
|
+
getScreenMedia(): Promise<MediaStream>;
|
|
35
|
+
offer(peerOptions: IPeer): Promise<void>;
|
|
36
|
+
answer(options: IRemoteOfferData): Promise<void>;
|
|
37
|
+
addIceCandidate(options: IRemoteIceData, isScreenShare: boolean): Promise<void> | false;
|
|
38
|
+
onPeerCameraToggled(peerId: string, isEnabled: boolean): void;
|
|
39
|
+
onPeerMicrophoneToggled(peerId: string, isEnabled: boolean): void;
|
|
40
|
+
onRemoteScreenShareStop(peer: IPeer): void;
|
|
41
|
+
setRemoteDescription(clientId: string, sdp: string, type: "offer" | "answer", isScreenShare?: boolean): Promise<void> | false;
|
|
42
|
+
getClientId(): string;
|
|
43
|
+
call(calleeId: string, options?: IRTSeeCallOptions): Promise<void>;
|
|
44
|
+
connect(roomId: string, data: IPeer): Promise<boolean>;
|
|
45
|
+
startScreenShare(): void;
|
|
46
|
+
shareScreenToPeer(peer: RTSeePeerConnection): void;
|
|
47
|
+
stopScreenShare(): void;
|
|
48
|
+
disableMicrophone(): void;
|
|
49
|
+
enableMicrophone(): void;
|
|
50
|
+
disableCamera(): void;
|
|
51
|
+
enableCamera(): void;
|
|
52
|
+
onCameraToggled(): void;
|
|
53
|
+
onMicrophoneToggled(): void;
|
|
54
|
+
setRTConfiguration(configuration: RTCConfiguration, applyImmediately: boolean): void;
|
|
55
|
+
getRTCConfiguration(): RTCConfiguration;
|
|
56
|
+
getDevices(): Promise<MediaDeviceInfo[]>;
|
|
57
|
+
setAudioInputDevicesList(): Promise<void>;
|
|
58
|
+
setAudioOutputDevicesList(): Promise<void>;
|
|
59
|
+
setVideoInputDevicesList(): Promise<void>;
|
|
60
|
+
setAudioInputDevice(deviceId: string): void;
|
|
61
|
+
setVideoInputDevice(deviceId: string): void;
|
|
62
|
+
setAudioOutputDevice(deviceId: string): void;
|
|
63
|
+
refreshMediaDevicesList(): Promise<[void, void, void]>;
|
|
64
|
+
end(): void;
|
|
65
|
+
private createAnswer;
|
|
66
|
+
private createOffer;
|
|
67
|
+
private attachPeerConnectionEvents;
|
|
68
|
+
private connectionStateChangeEnclosure;
|
|
69
|
+
private setLocalDescription;
|
|
70
|
+
private onIceCandidate;
|
|
71
|
+
private addLocalTracks;
|
|
72
|
+
private addScreenTracks;
|
|
73
|
+
private onGetUserMediaError;
|
|
74
|
+
private onGetUserMediaSuccess;
|
|
75
|
+
private onGetDisplayMediaSuccess;
|
|
76
|
+
private getAnswer;
|
|
77
|
+
private getOffer;
|
|
78
|
+
private stopLocalStream;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=RTSeeConference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTSeeConference.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeConference.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,SAAS,EAEV,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAGL,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,+BAA+B,EAC/B,uBAAuB,EAEvB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,eAAgB,SAAQ,SAAU,YAAW,gBAAgB;IACxE,kBAAkB,EAAE,wBAAwB,CAAkC;IAC9E,gBAAgB,EAAE,wBAAwB,CAAkC;IAC5E,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,CAAC,EAAE,WAAW,CAAQ;IACvC,UAAU,CAAC,EAAE,OAAO,CAAQ;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAQ;IACxB,eAAe,EAAE,+BAA+B,CAAC;IACjD,MAAM,EAAG,MAAM,CAAC;IAChB,UAAU,EAAE,eAAe,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAS;IAC9B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;IACtC,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC;I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