@reactoo/watchtogether-sdk-js 2.6.38 → 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
|
@@ -2003,7 +2003,7 @@ class RoomSession {
|
|
|
2003
2003
|
if (!handle) {
|
|
2004
2004
|
return Promise.reject({
|
|
2005
2005
|
type: 'error',
|
|
2006
|
-
id:
|
|
2006
|
+
id: 31,
|
|
2007
2007
|
message: 'no local id, connect before publishing',
|
|
2008
2008
|
data: null
|
|
2009
2009
|
})
|
|
@@ -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();
|