@reactoo/watchtogether-sdk-js 2.5.8 → 2.5.9
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
|
@@ -171,7 +171,6 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
|
|
|
171
171
|
} else if (msg.action === 'user_update_displayname' || msg.action === 'user_update_avatar' || msg.action === 'user_update_customattributes' || msg.action === 'user_update_privateattributes') {
|
|
172
172
|
emitter.emit('userUpdate', msg.text);
|
|
173
173
|
} else if (msg.action === 'observer_connecting' || msg.action === 'talkback_connecting' || msg.action === 'instructor_connecting') {
|
|
174
|
-
|
|
175
174
|
this.setRoomVars(null, msg.action === 'observer_connecting').catch(e => {
|
|
176
175
|
room._log('Setting observers failed, this will cause issues', e);
|
|
177
176
|
});
|
|
@@ -291,7 +290,6 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
|
|
|
291
290
|
setRoomVars: (observerIds = [], emit = true) => {
|
|
292
291
|
return wt.room.getRoomById(roomId, pinHash)
|
|
293
292
|
.then(r => {
|
|
294
|
-
|
|
295
293
|
if (emit) {
|
|
296
294
|
// emiting "fake" playerSource event
|
|
297
295
|
//TODO: somehow push into sync modules instead
|
package/src/modules/wt-room.js
CHANGED
|
@@ -12,10 +12,8 @@ class Room {
|
|
|
12
12
|
this.safariVp8 = false;
|
|
13
13
|
this.browser = adapter.browserDetails.browser;
|
|
14
14
|
this.browserDetails = adapter.browserDetails;
|
|
15
|
-
|
|
16
|
-
this.isWebrtcSupported = Room.isWebrtcSupported();
|
|
15
|
+
this.webrtcSupported = Room.isWebrtcSupported();
|
|
17
16
|
this.safariVp8TestPromise = Room.testSafariVp8();
|
|
18
|
-
|
|
19
17
|
this.safariVp8 = null;
|
|
20
18
|
this.safariVp8TestPromise.then(safariVp8 => {
|
|
21
19
|
this.safariVp8 = safariVp8;
|