@reactoo/watchtogether-sdk-js 2.7.5 → 2.7.7
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
package/src/models/room.js
CHANGED
|
@@ -210,11 +210,11 @@ let room = function () {
|
|
|
210
210
|
|
|
211
211
|
},
|
|
212
212
|
|
|
213
|
-
roomRecorder: ({roomId, operation = 'get', config, outputs, destinationIds, screenWidth, screenHeight} = {}) => {
|
|
213
|
+
roomRecorder: ({roomId, operation = 'get', config, outputs, destinationIds, screenWidth, screenHeight, payload} = {}) => {
|
|
214
214
|
return this.__privates.auth.__client
|
|
215
215
|
.then(client => client.apis.wt.recordRoom({}, {
|
|
216
216
|
requestBody: {
|
|
217
|
-
roomId, operation, config, outputs, destinationIds, screenWidth, screenHeight
|
|
217
|
+
roomId, operation, config, outputs, destinationIds, screenWidth, screenHeight, payload
|
|
218
218
|
}
|
|
219
219
|
}))
|
|
220
220
|
},
|
package/src/models/utils.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
//TODO: refactor for proper handling of resolution
|
|
4
|
-
|
|
5
3
|
const getUserMediaConstraints = ({
|
|
6
4
|
|
|
7
5
|
hasVideo,
|
|
@@ -104,8 +102,8 @@ export default {
|
|
|
104
102
|
channelCount = 1,
|
|
105
103
|
muteAudio = false,
|
|
106
104
|
muteVideo = false,
|
|
107
|
-
width,
|
|
108
|
-
height
|
|
105
|
+
width = 1280,
|
|
106
|
+
height = 720
|
|
109
107
|
} = {}
|
|
110
108
|
) {
|
|
111
109
|
|