@reactoo/watchtogether-sdk-js 2.6.39 → 2.6.40
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/package.json
CHANGED
package/src/modules/wt-room.js
CHANGED
|
@@ -2342,7 +2342,11 @@ class RoomSession {
|
|
|
2342
2342
|
toggleAudio(value = null, source = 'camera0', mid) {
|
|
2343
2343
|
let handle = this._getHandle(this.handleId);
|
|
2344
2344
|
if (!handle) {
|
|
2345
|
-
|
|
2345
|
+
this.emit('error', {
|
|
2346
|
+
type: 'warning',
|
|
2347
|
+
id: 21,
|
|
2348
|
+
message: 'no local id, connect first', data: null
|
|
2349
|
+
});
|
|
2346
2350
|
}
|
|
2347
2351
|
let config = handle.webrtcStuff;
|
|
2348
2352
|
let transceivers = config.pc?.getTransceivers();
|
|
@@ -2374,7 +2378,11 @@ class RoomSession {
|
|
|
2374
2378
|
toggleVideo(value = null, source = 'camera0', mid) {
|
|
2375
2379
|
let handle = this._getHandle(this.handleId);
|
|
2376
2380
|
if (!handle) {
|
|
2377
|
-
|
|
2381
|
+
this.emit('error', {
|
|
2382
|
+
type: 'warning',
|
|
2383
|
+
id: 21,
|
|
2384
|
+
message: 'no local id, connect first', data: null
|
|
2385
|
+
});
|
|
2378
2386
|
}
|
|
2379
2387
|
let config = handle.webrtcStuff;
|
|
2380
2388
|
let transceivers = config.pc?.getTransceivers();
|