@reactoo/watchtogether-sdk-js 2.6.97 → 2.6.99

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.6.97",
3
+ "version": "2.6.99",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -21,9 +21,9 @@ let asset = function() {
21
21
  return this.__privates.auth.__client
22
22
  .then(client => client.apis.asset.getAssetById({id}))
23
23
  },
24
- updateAsset: ({id, assetType, title, roomIds, customAttributes} = {}) => {
24
+ updateAsset: ({id, assetType, title, roomIds, customAttributes, encodeTransparency} = {}) => {
25
25
  return this.__privates.auth.__client
26
- .then(client => client.apis.asset.updateAsset({id}, {requestBody:{assetType, title, roomIds, customAttributes}}))
26
+ .then(client => client.apis.asset.updateAsset({id}, {requestBody:{assetType, title, roomIds, customAttributes, encodeTransparency}}))
27
27
  },
28
28
  deleteAsset: (id) => {
29
29
  return this.__privates.auth.__client
@@ -122,11 +122,14 @@ export default {
122
122
  },
123
123
 
124
124
  getHostStream({
125
- hasAudio,
126
- hasVideo,
127
- aDeviceId,
128
- vDeviceId,
129
- channelCount = 1} = {}
125
+ hasAudio,
126
+ hasVideo,
127
+ aDeviceId,
128
+ vDeviceId,
129
+ channelCount = 1,
130
+ width = 1920,
131
+ height = 1080,
132
+ } = {}
130
133
  ) {
131
134
 
132
135
  let audioOnlyConstraints = {
@@ -140,8 +143,7 @@ export default {
140
143
  video: {
141
144
  ...(vDeviceId && {deviceId: {exact:vDeviceId}}),
142
145
  frameRate: {ideal: 30, max: 30},
143
- width: {min: 1280, ideal: 1920},
144
- height: {min: 720, ideal: 1080},
146
+ width, height
145
147
  }
146
148
  };
147
149