@reactoo/watchtogether-sdk-js 2.5.11 → 2.5.13
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
|
@@ -132,7 +132,7 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
|
|
|
132
132
|
.then(() => this.connect({reactooRoomId}))
|
|
133
133
|
.then(() => {
|
|
134
134
|
if (isObserver) {
|
|
135
|
-
return this.publishLocal(null
|
|
135
|
+
return this.publishLocal(null);
|
|
136
136
|
} else if (stream) {
|
|
137
137
|
return this.publishLocal(stream);
|
|
138
138
|
} else
|
|
@@ -302,15 +302,8 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
|
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
304
|
|
|
305
|
-
publishLocal: function (stream = null, {
|
|
306
|
-
|
|
307
|
-
keepVideo = false,
|
|
308
|
-
getStreamIfEmpty = true,
|
|
309
|
-
askVideo = true
|
|
310
|
-
} = {}) {
|
|
311
|
-
return (stream || !getStreamIfEmpty
|
|
312
|
-
? room.publishLocal(stream, {keepAudio, keepVideo})
|
|
313
|
-
: wt.utils.getUserStream(askVideo).then(stream => room.publishLocal(stream)))
|
|
305
|
+
publishLocal: function (stream = null, {keepAudio = false, keepVideo = false} = {}) {
|
|
306
|
+
return room.publishLocal(stream, {keepAudio, keepVideo})
|
|
314
307
|
},
|
|
315
308
|
|
|
316
309
|
unpublishLocal: () => {
|