@stream-io/video-client 0.0.1-alpha.77 → 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 -12
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -12
- 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 -9
- 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
|
};
|
|
@@ -5721,11 +5725,6 @@ class Call {
|
|
|
5721
5725
|
if (this.joined$.getValue()) {
|
|
5722
5726
|
throw new Error(`Illegal State: Already joined.`);
|
|
5723
5727
|
}
|
|
5724
|
-
// FIXME OL: temporary fix which restores the previous behavior.
|
|
5725
|
-
// This data should come from the SDK, or integration
|
|
5726
|
-
data = data || {
|
|
5727
|
-
create: true,
|
|
5728
|
-
};
|
|
5729
5728
|
const call = yield join(this.streamClient, this.type, this.id, data);
|
|
5730
5729
|
this.state.setCurrentValue(this.state.metadataSubject, call.metadata);
|
|
5731
5730
|
this.state.setCurrentValue(this.state.membersSubject, call.members);
|
|
@@ -5788,6 +5787,9 @@ class Call {
|
|
|
5788
5787
|
});
|
|
5789
5788
|
return joinResponsePromise;
|
|
5790
5789
|
});
|
|
5790
|
+
this.updateCallMembers = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
5791
|
+
return yield this.streamClient.post(`${this.streamClientBasePath}/members`, data);
|
|
5792
|
+
});
|
|
5791
5793
|
/**
|
|
5792
5794
|
* Starts publishing the given video stream to the call.
|
|
5793
5795
|
* The stream will be stopped if the user changes an input device, or if the user leaves the call.
|
|
@@ -6308,9 +6310,7 @@ class Call {
|
|
|
6308
6310
|
const state = activeCall.state;
|
|
6309
6311
|
const remoteParticipants = state.getCurrentValue(state.remoteParticipants$);
|
|
6310
6312
|
if (!remoteParticipants.length && !leavingActiveCall) {
|
|
6311
|
-
yield this.
|
|
6312
|
-
type: 'call.cancelled',
|
|
6313
|
-
});
|
|
6313
|
+
yield this.endCall();
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
6316
6316
|
});
|
|
@@ -6456,7 +6456,7 @@ const watchCallRejected = (store) => {
|
|
|
6456
6456
|
};
|
|
6457
6457
|
};
|
|
6458
6458
|
/**
|
|
6459
|
-
* Event handler that watches the delivery of
|
|
6459
|
+
* Event handler that watches the delivery of CallEndedEvent
|
|
6460
6460
|
* Updates the state store and notifies its subscribers that
|
|
6461
6461
|
* the call is now considered terminated.
|
|
6462
6462
|
*/
|
|
@@ -6464,7 +6464,7 @@ const watchCallCancelled = (store) => {
|
|
|
6464
6464
|
return function onCallCancelled(event) {
|
|
6465
6465
|
const { call_cid } = event;
|
|
6466
6466
|
if (!call_cid) {
|
|
6467
|
-
console.log("Can't find call in
|
|
6467
|
+
console.log("Can't find call in CallEndedEvent");
|
|
6468
6468
|
return;
|
|
6469
6469
|
}
|
|
6470
6470
|
const cancelledIncomingCall = store
|
|
@@ -6475,7 +6475,7 @@ const watchCallCancelled = (store) => {
|
|
|
6475
6475
|
? activeCall
|
|
6476
6476
|
: undefined;
|
|
6477
6477
|
if (!cancelledIncomingCall && !cancelledActiveCall) {
|
|
6478
|
-
console.warn(`
|
|
6478
|
+
console.warn(`CallEndedEvent received for a non-existent incoming call (CID: ${call_cid}`);
|
|
6479
6479
|
return;
|
|
6480
6480
|
}
|
|
6481
6481
|
store.setCurrentValue(store.pendingCallsSubject, (pendingCalls) => pendingCalls.filter((pendingCall) => pendingCall.cid !== call_cid));
|
|
@@ -8496,7 +8496,7 @@ class StreamClient {
|
|
|
8496
8496
|
}
|
|
8497
8497
|
getUserAgent() {
|
|
8498
8498
|
return (this.userAgent ||
|
|
8499
|
-
`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"}`);
|
|
8500
8500
|
}
|
|
8501
8501
|
setUserAgent(userAgent) {
|
|
8502
8502
|
this.userAgent = userAgent;
|