@reactoo/watchtogether-sdk-js 2.5.90 → 2.5.92
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
|
@@ -15,7 +15,7 @@ import syncVodDashJs from "../modules/sync-modules/sync-dash-vod";
|
|
|
15
15
|
import syncDoris from "../modules/sync-modules/sync-doris";
|
|
16
16
|
import syncDisabled from "../modules/sync-modules/sync-disabled";
|
|
17
17
|
import syncDaznDash from "../modules/sync-modules/sync-dazn-dash";
|
|
18
|
-
import
|
|
18
|
+
import syncDazn from "../modules/sync-modules/sync-dazn";
|
|
19
19
|
import syncModule from "../modules/sync-modules/sync-module";
|
|
20
20
|
|
|
21
21
|
let roomSession = function ({roomId, pinHash, role}, room, wt) {
|
|
@@ -205,7 +205,7 @@ let roomSession = function ({roomId, pinHash, role}, room, wt) {
|
|
|
205
205
|
// DAZN interface
|
|
206
206
|
renderPlayer: function (playerWrapper, fullscreenElement, roomId) {
|
|
207
207
|
try {
|
|
208
|
-
this.syncModule =
|
|
208
|
+
this.syncModule = syncDazn({room, wt, roomSession: this, emitter});
|
|
209
209
|
this.playerInterface = wt.__privates.playerFactory(playerWrapper, fullscreenElement, this.syncModule.getHandlers(), {roomId});
|
|
210
210
|
this.syncModule.initialize({playerInterface: this.playerInterface});
|
|
211
211
|
return true;
|
package/src/models/room.js
CHANGED
|
@@ -208,11 +208,11 @@ let room = function () {
|
|
|
208
208
|
|
|
209
209
|
},
|
|
210
210
|
|
|
211
|
-
roomRecorder: ({roomId, operation = 'get', config, destinationIds} = {}) => {
|
|
211
|
+
roomRecorder: ({roomId, operation = 'get', config, outputs, destinationIds} = {}) => {
|
|
212
212
|
return this.__privates.auth.__client
|
|
213
213
|
.then(client => client.apis.wt.recordRoom({}, {
|
|
214
214
|
requestBody: {
|
|
215
|
-
roomId, operation, config, destinationIds
|
|
215
|
+
roomId, operation, config, outputs, destinationIds
|
|
216
216
|
}
|
|
217
217
|
}))
|
|
218
218
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {setExactTimeout} from "../wt-utils";
|
|
2
2
|
import localEmitter from "../wt-emitter";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const syncDazn = function ({room, wt, roomSession, emitter} = {}) {
|
|
5
5
|
|
|
6
6
|
//SYNC VARS
|
|
7
7
|
let _emitter = localEmitter();
|
|
@@ -530,4 +530,4 @@ const syncUniversal = function ({room, wt, roomSession, emitter} = {}) {
|
|
|
530
530
|
|
|
531
531
|
};
|
|
532
532
|
|
|
533
|
-
export default
|
|
533
|
+
export default syncDazn;
|
package/src/modules/wt-iot.js
CHANGED
|
@@ -232,7 +232,7 @@ class Iot {
|
|
|
232
232
|
else if(topic[1] === 'asset') {
|
|
233
233
|
this.emit('message', {event: 'asset', assetId: topic[2], ...payload});
|
|
234
234
|
}
|
|
235
|
-
} else if(topic[0] === 'wtr') {
|
|
235
|
+
} else if(topic[0] === 'wtr' || topic[0] === 'gwtr') {
|
|
236
236
|
const recorderId = topic[1];
|
|
237
237
|
const sessionId = topic[2];
|
|
238
238
|
if(topic[3] === 'control') {
|