@stream-io/video-client 0.0.1-alpha.78 → 0.0.1-alpha.79
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/dist/index.browser.es.js +12 -7
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +12 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -7
- package/dist/index.es.js.map +1 -1
- package/dist/src/events/call.d.ts +3 -3
- package/dist/src/gen/coordinator/index.d.ts +257 -51
- package/dist/src/rtc/Call.d.ts +3 -2
- package/package.json +1 -1
- package/src/events/call.ts +5 -5
- package/src/gen/coordinator/index.ts +250 -50
- package/src/rtc/Call.ts +13 -3
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -0
package/dist/index.browser.es.js
CHANGED
|
@@ -32,14 +32,18 @@ const OwnCapability = {
|
|
|
32
32
|
join_ended_call: 'join-ended-call',
|
|
33
33
|
mute_users: 'mute-users',
|
|
34
34
|
read_call: 'read-call',
|
|
35
|
+
remove_call_member: 'remove-call-member',
|
|
35
36
|
screenshare: 'screenshare',
|
|
36
37
|
send_audio: 'send-audio',
|
|
37
38
|
send_video: 'send-video',
|
|
38
39
|
start_broadcast_call: 'start-broadcast-call',
|
|
39
40
|
start_record_call: 'start-record-call',
|
|
41
|
+
start_transcription_call: 'start-transcription-call',
|
|
40
42
|
stop_broadcast_call: 'stop-broadcast-call',
|
|
41
43
|
stop_record_call: 'stop-record-call',
|
|
44
|
+
stop_transcription_call: 'stop-transcription-call',
|
|
42
45
|
update_call: 'update-call',
|
|
46
|
+
update_call_member: 'update-call-member',
|
|
43
47
|
update_call_permissions: 'update-call-permissions',
|
|
44
48
|
update_call_settings: 'update-call-settings',
|
|
45
49
|
};
|
|
@@ -5783,6 +5787,9 @@ class Call {
|
|
|
5783
5787
|
});
|
|
5784
5788
|
return joinResponsePromise;
|
|
5785
5789
|
});
|
|
5790
|
+
this.updateCallMembers = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
5791
|
+
return yield this.streamClient.post(`${this.streamClientBasePath}/members`, data);
|
|
5792
|
+
});
|
|
5786
5793
|
/**
|
|
5787
5794
|
* Starts publishing the given video stream to the call.
|
|
5788
5795
|
* The stream will be stopped if the user changes an input device, or if the user leaves the call.
|
|
@@ -6303,9 +6310,7 @@ class Call {
|
|
|
6303
6310
|
const state = activeCall.state;
|
|
6304
6311
|
const remoteParticipants = state.getCurrentValue(state.remoteParticipants$);
|
|
6305
6312
|
if (!remoteParticipants.length && !leavingActiveCall) {
|
|
6306
|
-
yield this.
|
|
6307
|
-
type: 'call.cancelled',
|
|
6308
|
-
});
|
|
6313
|
+
yield this.endCall();
|
|
6309
6314
|
}
|
|
6310
6315
|
}
|
|
6311
6316
|
});
|
|
@@ -6451,7 +6456,7 @@ const watchCallRejected = (store) => {
|
|
|
6451
6456
|
};
|
|
6452
6457
|
};
|
|
6453
6458
|
/**
|
|
6454
|
-
* Event handler that watches the delivery of
|
|
6459
|
+
* Event handler that watches the delivery of CallEndedEvent
|
|
6455
6460
|
* Updates the state store and notifies its subscribers that
|
|
6456
6461
|
* the call is now considered terminated.
|
|
6457
6462
|
*/
|
|
@@ -6459,7 +6464,7 @@ const watchCallCancelled = (store) => {
|
|
|
6459
6464
|
return function onCallCancelled(event) {
|
|
6460
6465
|
const { call_cid } = event;
|
|
6461
6466
|
if (!call_cid) {
|
|
6462
|
-
console.log("Can't find call in
|
|
6467
|
+
console.log("Can't find call in CallEndedEvent");
|
|
6463
6468
|
return;
|
|
6464
6469
|
}
|
|
6465
6470
|
const cancelledIncomingCall = store
|
|
@@ -6470,7 +6475,7 @@ const watchCallCancelled = (store) => {
|
|
|
6470
6475
|
? activeCall
|
|
6471
6476
|
: undefined;
|
|
6472
6477
|
if (!cancelledIncomingCall && !cancelledActiveCall) {
|
|
6473
|
-
console.warn(`
|
|
6478
|
+
console.warn(`CallEndedEvent received for a non-existent incoming call (CID: ${call_cid}`);
|
|
6474
6479
|
return;
|
|
6475
6480
|
}
|
|
6476
6481
|
store.setCurrentValue(store.pendingCallsSubject, (pendingCalls) => pendingCalls.filter((pendingCall) => pendingCall.cid !== call_cid));
|
|
@@ -8491,7 +8496,7 @@ class StreamClient {
|
|
|
8491
8496
|
}
|
|
8492
8497
|
getUserAgent() {
|
|
8493
8498
|
return (this.userAgent ||
|
|
8494
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.
|
|
8499
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.78"}`);
|
|
8495
8500
|
}
|
|
8496
8501
|
setUserAgent(userAgent) {
|
|
8497
8502
|
this.userAgent = userAgent;
|