@reactoo/watchtogether-sdk-js 2.7.91 → 2.7.92-beta.0
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.
|
@@ -10121,6 +10121,7 @@ class RoomSession {
|
|
|
10121
10121
|
if (json['janus'] === 'error') {
|
|
10122
10122
|
var _json$error;
|
|
10123
10123
|
if ((json === null || json === void 0 ? void 0 : (_json$error = json.error) === null || _json$error === void 0 ? void 0 : _json$error.code) == 403) {
|
|
10124
|
+
console.log(1);
|
|
10124
10125
|
this.disconnect(true);
|
|
10125
10126
|
}
|
|
10126
10127
|
reject({
|
|
@@ -10203,6 +10204,7 @@ class RoomSession {
|
|
|
10203
10204
|
this._retries++;
|
|
10204
10205
|
if (this._retries > this._maxRetries) {
|
|
10205
10206
|
if (this.sessiontype === 'reactooroom') {
|
|
10207
|
+
console.log(2);
|
|
10206
10208
|
this.disconnect(true);
|
|
10207
10209
|
} else if (this.sessiontype === 'streaming') {
|
|
10208
10210
|
this.stopStream();
|
|
@@ -10231,6 +10233,7 @@ class RoomSession {
|
|
|
10231
10233
|
}, 3000 * this._retries);
|
|
10232
10234
|
} else {
|
|
10233
10235
|
if (this.sessiontype === 'reactooroom') {
|
|
10236
|
+
console.log(3);
|
|
10234
10237
|
this.disconnect(true);
|
|
10235
10238
|
} else if (this.sessiontype === 'streaming') {
|
|
10236
10239
|
this.stopStream();
|
|
@@ -10498,6 +10501,7 @@ class RoomSession {
|
|
|
10498
10501
|
this._removeParticipant(this.handleId);
|
|
10499
10502
|
if (msg['reason'] === 'kicked') {
|
|
10500
10503
|
this.emit('kicked');
|
|
10504
|
+
console.log(4);
|
|
10501
10505
|
this.disconnect().catch(() => {});
|
|
10502
10506
|
}
|
|
10503
10507
|
} else if (leaving) {
|
|
@@ -11342,6 +11346,7 @@ class RoomSession {
|
|
|
11342
11346
|
}
|
|
11343
11347
|
destroy() {
|
|
11344
11348
|
if (this.sessiontype === 'reactooroom') {
|
|
11349
|
+
console.log(5);
|
|
11345
11350
|
return this.disconnect().then(() => {
|
|
11346
11351
|
this.clear();
|
|
11347
11352
|
return true;
|
|
@@ -12372,6 +12377,7 @@ class RoomSession {
|
|
|
12372
12377
|
var _stream$getVideoTrack, _stream$getAudioTrack, _config$stream4, _config$stream4$getAu, _config$stream5, _config$stream5$getVi, _stream$getAudioTrack2, _stream$getVideoTrack2;
|
|
12373
12378
|
let stream = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
12374
12379
|
let source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'camera0';
|
|
12380
|
+
console.log(this.isDisconnecting, this.isConnected);
|
|
12375
12381
|
if (this.isDisconnecting || !this.isConnected) {
|
|
12376
12382
|
return Promise.reject({
|
|
12377
12383
|
type: 'warning',
|