@reactoo/watchtogether-sdk-js 2.7.12 → 2.7.14

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.7.12",
3
+ "version": "2.7.14",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -41,12 +41,12 @@ let user = function () {
41
41
  return this.__privates.auth.__client
42
42
  .then(client => Promise.all([client, client.apis.video.initiateVideoUpload({id, segmentCount: files.length || 0})]))
43
43
  .then(([client, response]) => Promise.all([client, response.data.signedUrlSegments.reduce((acc, url, index) => acc.then(() => client.http({url, method: response.data.httpMethod, headers: {"Content-Type":files[index].type}, body:files[index]})), Promise.resolve())]))
44
- .then(([client]) => client.apis.video.publishVideo({_id:id, roomId}, {requestBody:{_id:id, roomId, privateAttributes, customPrice}}))
44
+ .then(([client]) => client.apis.video.publishVideo({_id:id, roomId, customPrice}, {requestBody:{_id:id, roomId, privateAttributes, customPrice}}))
45
45
  },
46
46
 
47
47
  publishVideo: (roomId, id, privateAttributes = {}, customPrice) => {
48
48
  return this.__privates.auth.__client
49
- .then(client => client.apis.video.publishVideo({_id:id, roomId}, {requestBody:{_id:id, roomId, privateAttributes, customPrice}}))
49
+ .then(client => client.apis.video.publishVideo({_id:id, roomId, customPrice}, {requestBody:{_id:id, roomId, privateAttributes}}))
50
50
  },
51
51
 
52
52
  getReactionById: (id) => {
@@ -10,8 +10,8 @@ const getUserMediaConstraints = ({
10
10
  echoCancellation = true,
11
11
  noiseSuppression = true,
12
12
  channelCount = 1,
13
- width = 1280,
14
- height = 720,
13
+ width = 1920,
14
+ height = 1080,
15
15
 
16
16
  }) => {
17
17
 
@@ -102,8 +102,8 @@ export default {
102
102
  channelCount = 1,
103
103
  muteAudio = false,
104
104
  muteVideo = false,
105
- width = 1280,
106
- height = 720
105
+ width = 1920,
106
+ height = 1080
107
107
  } = {}
108
108
  ) {
109
109