@observertc/observer-js 0.9.9-beta → 0.9.10-beta
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sources.d.ts","sourceRoot":"","sources":["../../src/sources/Sources.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAwB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAuB,MAAM,yBAAyB,CAAC;AAI5E,MAAM,MAAM,aAAa,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,kBAAkB,EAAE;QACnB,aAAa,EAAE,aAAa,CAAC;QAC7B,YAAY,EAAE,YAAY,CAAC;QAC3B,eAAe,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,uBAAuB,EAAE,0BAA0B,CAAC;IACpD,qBAAqB,EAAE,0BAA0B,CAAC;IAClD,oBAAoB,EAAE,uBAAuB,CAAC;IAC9C,kBAAkB,EAAE,uBAAuB,CAAC;CAC5C,CAAC;AAEF,qBAAa,OAAO;aASgB,MAAM,EAAE,aAAa;IARxD,OAAO,CAAC,cAAc,CAA2C;IACjE,OAAO,CAAC,WAAW,CAAwC;IAC3D,OAAO,CAAC,qBAAqB,CAA8B;IAC3D,OAAO,CAAC,oBAAoB,CAA6B;IACzD,OAAO,CAAC,QAAQ,CAAsB;IACtC,OAAO,CAAC,MAAM,CAAC,CAAgC;IAC/C,OAAO,CAAC,gBAAgB,CAAK;gBAEM,MAAM,EAAE,aAAa;IAE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,EAAE,aAAa;IARxD,OAAO,CAAC,cAAc,CAA2C;IACjE,OAAO,CAAC,WAAW,CAAwC;IAC3D,OAAO,CAAC,qBAAqB,CAA8B;IAC3D,OAAO,CAAC,oBAAoB,CAA6B;IACzD,OAAO,CAAC,QAAQ,CAAsB;IACtC,OAAO,CAAC,MAAM,CAAC,CAAgC;IAC/C,OAAO,CAAC,gBAAgB,CAAK;gBAEM,MAAM,EAAE,aAAa;IAEjD,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI;IAK7F,GAAG,CAAC,CAAC,SAAS,MAAM,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI;IAKrG,OAAO,CAAC,KAAK;IAIN,kBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC,0BAA0B,EAAE,QAAQ,CAAC,GAAG,oBAAoB;IAkDjG,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,uBAAuB,EAAE,QAAQ,CAAC,GAAG,iBAAiB;IA6C/F,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,WAAW;IAaZ,KAAK;CAQZ"}
|
package/lib/sources/Sources.js
CHANGED
|
@@ -41,7 +41,7 @@ class Sources {
|
|
|
41
41
|
joined: (_a = config.joined) !== null && _a !== void 0 ? _a : Date.now(),
|
|
42
42
|
accept: (...samples) => {
|
|
43
43
|
if (closed) {
|
|
44
|
-
throw new Error('
|
|
44
|
+
throw new Error('Cannot accept ClientSample, because the ClientSource is closed');
|
|
45
45
|
}
|
|
46
46
|
const observedCallBuilder = this._observedCallsBuilder.getOrCreateObservedCallBuilder(config.callId, () => {
|
|
47
47
|
return {
|
|
@@ -63,6 +63,7 @@ class Sources {
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
closed = true;
|
|
66
|
+
this._clientSources.delete(config.clientId);
|
|
66
67
|
this._emit('removed-client-source', source);
|
|
67
68
|
},
|
|
68
69
|
closed,
|
|
@@ -88,7 +89,7 @@ class Sources {
|
|
|
88
89
|
joined: (_a = config.joined) !== null && _a !== void 0 ? _a : Date.now(),
|
|
89
90
|
accept: (...samples) => {
|
|
90
91
|
if (closed) {
|
|
91
|
-
throw new Error('
|
|
92
|
+
throw new Error('Cannot accept SfuSample, because the SfuSource is closed');
|
|
92
93
|
}
|
|
93
94
|
const observedSfuBuilder = this._observedSfusBuilder.getOrCreateObservedSfuBuilder(config.sfuId, () => {
|
|
94
95
|
return {
|
|
@@ -105,6 +106,7 @@ class Sources {
|
|
|
105
106
|
return;
|
|
106
107
|
}
|
|
107
108
|
closed = true;
|
|
109
|
+
this._sfuSources.delete(config.sfuId);
|
|
108
110
|
this._emit('removed-sfu-source', source);
|
|
109
111
|
},
|
|
110
112
|
closed,
|
|
@@ -128,6 +130,7 @@ class Sources {
|
|
|
128
130
|
const observedCalls = this._observedCallsBuilder.build();
|
|
129
131
|
this._observedCallsBuilder = new ObservedCalls_1.ObservedCallsBuilder();
|
|
130
132
|
const observedSfus = this._observedSfusBuilder.build();
|
|
133
|
+
this._observedSfusBuilder = new ObservedSfus_1.ObservedSfusBuilder();
|
|
131
134
|
this._emit('observed-samples', {
|
|
132
135
|
observedCalls,
|
|
133
136
|
observedSfus,
|
package/package.json
CHANGED
package/src/sources/Sources.ts
CHANGED
|
@@ -66,7 +66,7 @@ export class Sources {
|
|
|
66
66
|
|
|
67
67
|
accept: (...samples: ClientSample[]) => {
|
|
68
68
|
if (closed) {
|
|
69
|
-
throw new Error('
|
|
69
|
+
throw new Error('Cannot accept ClientSample, because the ClientSource is closed');
|
|
70
70
|
}
|
|
71
71
|
const observedCallBuilder = this._observedCallsBuilder.getOrCreateObservedCallBuilder(config.callId, () => {
|
|
72
72
|
return {
|
|
@@ -89,6 +89,7 @@ export class Sources {
|
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
closed = true;
|
|
92
|
+
this._clientSources.delete(config.clientId);
|
|
92
93
|
this._emit('removed-client-source', source);
|
|
93
94
|
},
|
|
94
95
|
closed,
|
|
@@ -115,7 +116,7 @@ export class Sources {
|
|
|
115
116
|
|
|
116
117
|
accept: (...samples: SfuSample[]) => {
|
|
117
118
|
if (closed) {
|
|
118
|
-
throw new Error('
|
|
119
|
+
throw new Error('Cannot accept SfuSample, because the SfuSource is closed');
|
|
119
120
|
}
|
|
120
121
|
const observedSfuBuilder = this._observedSfusBuilder.getOrCreateObservedSfuBuilder(config.sfuId, () => {
|
|
121
122
|
return {
|
|
@@ -133,6 +134,7 @@ export class Sources {
|
|
|
133
134
|
return;
|
|
134
135
|
}
|
|
135
136
|
closed = true;
|
|
137
|
+
this._sfuSources.delete(config.sfuId);
|
|
136
138
|
this._emit('removed-sfu-source', source);
|
|
137
139
|
},
|
|
138
140
|
closed,
|
|
@@ -158,6 +160,7 @@ export class Sources {
|
|
|
158
160
|
const observedCalls = this._observedCallsBuilder.build();
|
|
159
161
|
this._observedCallsBuilder = new ObservedCallsBuilder();
|
|
160
162
|
const observedSfus = this._observedSfusBuilder.build();
|
|
163
|
+
this._observedSfusBuilder = new ObservedSfusBuilder();
|
|
161
164
|
this._emit('observed-samples', {
|
|
162
165
|
observedCalls,
|
|
163
166
|
observedSfus,
|