@reactoo/watchtogether-sdk-js 2.4.19 → 2.4.20

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.19",
3
+ "version": "2.4.20",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -227,7 +227,7 @@ const syncVodDashJs = function ({room, wt, roomSession, emitter} = {}) {
227
227
  if(data.operation === 'multi') {
228
228
  (data.value || []).forEach(event => {
229
229
  if (event.operation === 'sendMessage') {
230
- executePlayerIotEvents({...data, roomId: data.roomId, userId: data.userId});
230
+ executePlayerIotEvents({...event, roomId: data.roomId, userId: data.userId});
231
231
  }
232
232
  })
233
233
  }
@@ -227,7 +227,7 @@ const syncVodHlsJs = function ({room, wt, roomSession, emitter} = {}) {
227
227
  if(data.operation === 'multi') {
228
228
  (data.value || []).forEach(event => {
229
229
  if (event.operation === 'sendMessage') {
230
- executePlayerIotEvents({...data, roomId: data.roomId, userId: data.userId});
230
+ executePlayerIotEvents({...event, roomId: data.roomId, userId: data.userId});
231
231
  }
232
232
  })
233
233
  }
@@ -219,7 +219,7 @@ const syncVodHlsJs = function ({room, wt, roomSession, emitter} = {}) {
219
219
  if(data.operation === 'multi') {
220
220
  (data.value || []).forEach(event => {
221
221
  if (event.operation === 'sendMessage') {
222
- executePlayerIotEvents({...data, roomId: data.roomId, userId: data.userId});
222
+ executePlayerIotEvents({...event, roomId: data.roomId, userId: data.userId});
223
223
  }
224
224
  })
225
225
  }
@@ -225,7 +225,7 @@ const syncVodShakaDash = function ({room, wt, roomSession, emitter} = {}) {
225
225
  if(data.operation === 'multi') {
226
226
  (data.value || []).forEach(event => {
227
227
  if (event.operation === 'sendMessage') {
228
- executePlayerIotEvents({...data, roomId: data.roomId, userId: data.userId});
228
+ executePlayerIotEvents({...event, roomId: data.roomId, userId: data.userId});
229
229
  }
230
230
  })
231
231
  }