@reactoo/watchtogether-sdk-js 2.4.42 → 2.4.43

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.4.42",
3
+ "version": "2.4.43",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -167,9 +167,14 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
167
167
  },
168
168
 
169
169
  renderPlayer: function (playerWrapper, fullscreenElement, roomId) {
170
- this.syncModule = syncUniversal({room, wt, roomSession: this, emitter});
171
- this.playerInterface = wt.__privates.playerFactory(playerWrapper, fullscreenElement, this.syncModule.getHandlers(), {roomId});
172
- this.syncModule.initialize({playerInterface: this.playerInterface});
170
+ try {
171
+ this.syncModule = syncUniversal({room, wt, roomSession: this, emitter});
172
+ this.playerInterface = wt.__privates.playerFactory(playerWrapper, fullscreenElement, this.syncModule.getHandlers(), {roomId});
173
+ this.syncModule.initialize({playerInterface: this.playerInterface});
174
+ return true;
175
+ } catch (e) {
176
+ return false;
177
+ }
173
178
  },
174
179
 
175
180
  attachPlayer: function (type, inputs) {