@reactoo/watchtogether-sdk-js 2.7.93 → 2.7.95
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/example/index.html
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<button onclick="window.toggleVideo()">toggle video</button>
|
|
23
23
|
<button onclick="window.toggleAudio()">toggle audio</button>
|
|
24
24
|
<button onclick="window.hento()">get client</button>
|
|
25
|
+
<button onclick="window.asset()">assets</button>
|
|
25
26
|
</div>
|
|
26
27
|
|
|
27
28
|
</div>
|
|
@@ -527,6 +528,13 @@
|
|
|
527
528
|
sess.sendSystemMessage('customData', {some: 'data'})
|
|
528
529
|
}
|
|
529
530
|
|
|
531
|
+
window.asset = function () {
|
|
532
|
+
Instance.asset.getAssetList({ ids: ['6304b890-321a-494b-b0e6-b0cee48026cd'], instanceType: 'reactooBackup', type:'ids'})
|
|
533
|
+
.then(r => {
|
|
534
|
+
console.log(r);
|
|
535
|
+
})
|
|
536
|
+
}
|
|
537
|
+
|
|
530
538
|
</script>
|
|
531
539
|
|
|
532
540
|
</body>
|
package/package.json
CHANGED
package/src/models/asset.js
CHANGED
|
@@ -19,13 +19,13 @@ let asset = function() {
|
|
|
19
19
|
};
|
|
20
20
|
return this.__privates.auth.__client
|
|
21
21
|
.then(client => client.apis.asset.getAssetList(apiParams))
|
|
22
|
-
.then(response => type === 'ids' ? {
|
|
22
|
+
.then(response => type === 'ids' ? ({
|
|
23
23
|
data: {
|
|
24
24
|
items: [...chainResponse.data.items, ...response.data.items],
|
|
25
25
|
size: chainResponse.data.size + response.data.size,
|
|
26
26
|
startKey: null,
|
|
27
27
|
},
|
|
28
|
-
} : response);
|
|
28
|
+
}) : response);
|
|
29
29
|
});
|
|
30
30
|
}, Promise.resolve({data: {items: [], size: 0, startKey: null}}));
|
|
31
31
|
},
|
package/src/models/room.js
CHANGED
|
@@ -87,7 +87,7 @@ let room = function () {
|
|
|
87
87
|
}))
|
|
88
88
|
},
|
|
89
89
|
|
|
90
|
-
updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, isSimulcast, videoCodec, customAttributes, dotAttribute} = {}) => {
|
|
90
|
+
updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, isSimulcast, isLongpolling, videoCodec, customAttributes, dotAttribute} = {}) => {
|
|
91
91
|
let _da = dotAttribute
|
|
92
92
|
? (Array.isArray(dotAttribute)
|
|
93
93
|
? dotAttribute.reduce((p, cv) => (p[cv.name] = cv.value) && p || p, {})
|
|
@@ -113,6 +113,7 @@ let room = function () {
|
|
|
113
113
|
disableSync,
|
|
114
114
|
defaultRegion,
|
|
115
115
|
isSimulcast,
|
|
116
|
+
isLongpolling,
|
|
116
117
|
videoCodec,
|
|
117
118
|
customAttributes,
|
|
118
119
|
wtChannelId,
|
package/src/models/user.js
CHANGED
|
@@ -44,9 +44,9 @@ let user = function () {
|
|
|
44
44
|
.then(([client]) => client.apis.video.publishVideo({_id:id, roomId, customPrice}, {requestBody:{_id:id, roomId, privateAttributes, customAttributes, customPrice}}))
|
|
45
45
|
},
|
|
46
46
|
|
|
47
|
-
publishVideo: (roomId, id, privateAttributes = {}, customPrice) => {
|
|
47
|
+
publishVideo: (roomId, id, privateAttributes = {}, customAttributes = {}, customPrice) => {
|
|
48
48
|
return this.__privates.auth.__client
|
|
49
|
-
.then(client => client.apis.video.publishVideo({_id:id, roomId, customPrice}, {requestBody:{_id:id, roomId, privateAttributes}}))
|
|
49
|
+
.then(client => client.apis.video.publishVideo({_id:id, roomId, customPrice}, {requestBody:{_id:id, roomId, privateAttributes, customAttributes, customPrice}}))
|
|
50
50
|
},
|
|
51
51
|
|
|
52
52
|
getReactionById: (id) => {
|