@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
|
@@ -167,9 +167,14 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
|
|
|
167
167
|
},
|
|
168
168
|
|
|
169
169
|
renderPlayer: function (playerWrapper, fullscreenElement, roomId) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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) {
|