@reactoo/watchtogether-sdk-js 2.5.76 → 2.5.78
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
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<button onclick="unpublish()">unpublish</button>
|
|
18
18
|
<button onclick="toggleVideo()">toggle video</button>
|
|
19
19
|
<button onclick="toggleAudio()">toggle audio</button>
|
|
20
|
-
<button onclick="hento()">
|
|
20
|
+
<button onclick="hento()">get client</button>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
23
|
</div>
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
function hento() {
|
|
46
46
|
//Instance.system.getSettings();
|
|
47
|
-
Instance.
|
|
47
|
+
Instance.system.getClient()
|
|
48
48
|
.then(r => {
|
|
49
|
-
|
|
49
|
+
console.log(r)
|
|
50
50
|
})
|
|
51
51
|
|
|
52
52
|
}
|
package/package.json
CHANGED
package/src/models/room.js
CHANGED
|
@@ -208,11 +208,11 @@ let room = function () {
|
|
|
208
208
|
|
|
209
209
|
},
|
|
210
210
|
|
|
211
|
-
roomRecorder: ({roomId, operation = 'get', config} = {}) => {
|
|
211
|
+
roomRecorder: ({roomId, operation = 'get', config, destinationIds} = {}) => {
|
|
212
212
|
return this.__privates.auth.__client
|
|
213
213
|
.then(client => client.apis.wt.recordRoom({}, {
|
|
214
214
|
requestBody: {
|
|
215
|
-
roomId, operation, config
|
|
215
|
+
roomId, operation, config, destinationIds
|
|
216
216
|
}
|
|
217
217
|
}))
|
|
218
218
|
},
|
package/src/models/system.js
CHANGED
|
@@ -75,6 +75,12 @@ let system = function () {
|
|
|
75
75
|
return this.__privates.auth.__client.then(client => {
|
|
76
76
|
return client.spec?.components?.schemas
|
|
77
77
|
})
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
getClient: () => {
|
|
81
|
+
return this.__privates.auth.__client.then(client => {
|
|
82
|
+
return client
|
|
83
|
+
});
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
86
|
}
|
package/src/modules/wt-room.js
CHANGED
|
@@ -785,8 +785,13 @@ class RoomSession {
|
|
|
785
785
|
}, true) : Promise.resolve()))
|
|
786
786
|
.finally(() => {
|
|
787
787
|
try {
|
|
788
|
-
if (handle.webrtcStuff.stream
|
|
789
|
-
|
|
788
|
+
if (handle.webrtcStuff.stream) {
|
|
789
|
+
if(!this.isRestarting) {
|
|
790
|
+
handle.webrtcStuff.stream.getTracks().forEach(track => track.stop());
|
|
791
|
+
}
|
|
792
|
+
else {
|
|
793
|
+
handle.webrtcStuff.stream.getTracks().forEach(track => track.onended = null);
|
|
794
|
+
}
|
|
790
795
|
}
|
|
791
796
|
} catch (e) {
|
|
792
797
|
// Do nothing
|