@stream-io/video-client 1.1.0 → 1.2.1
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/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +6 -4
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +6 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +4 -2
- package/dist/src/coordinator/connection/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/Call.ts +5 -1
- package/src/coordinator/connection/types.ts +3 -0
- package/src/events/callEventHandlers.ts +1 -1
- package/src/rtc/codecs.ts +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6432,7 +6432,7 @@ const getGenericSdp = async (direction) => {
|
|
|
6432
6432
|
const offer = await tempPc.createOffer();
|
|
6433
6433
|
let sdp = offer.sdp ?? '';
|
|
6434
6434
|
tempPc.getTransceivers().forEach((t) => {
|
|
6435
|
-
t.stop();
|
|
6435
|
+
t.stop?.();
|
|
6436
6436
|
});
|
|
6437
6437
|
tempPc.close();
|
|
6438
6438
|
return sdp;
|
|
@@ -12468,9 +12468,11 @@ class Call {
|
|
|
12468
12468
|
* This method should be used only for "ringing" call flows.
|
|
12469
12469
|
* {@link Call.leave} invokes this method automatically for you when you leave or reject this call.
|
|
12470
12470
|
* Unless you are implementing a custom "ringing" flow, you should not use this method.
|
|
12471
|
+
*
|
|
12472
|
+
* @param reason the reason for rejecting the call.
|
|
12471
12473
|
*/
|
|
12472
|
-
this.reject = async () => {
|
|
12473
|
-
return this.streamClient.post(`${this.streamClientBasePath}/reject
|
|
12474
|
+
this.reject = async (reason) => {
|
|
12475
|
+
return this.streamClient.post(`${this.streamClientBasePath}/reject`, { reason: reason });
|
|
12474
12476
|
};
|
|
12475
12477
|
/**
|
|
12476
12478
|
* Will start to watch for call related WebSocket events and initiate a call session with the server.
|
|
@@ -15306,7 +15308,7 @@ class StreamClient {
|
|
|
15306
15308
|
});
|
|
15307
15309
|
};
|
|
15308
15310
|
this.getUserAgent = () => {
|
|
15309
|
-
const version = "1.1
|
|
15311
|
+
const version = "1.2.1" ;
|
|
15310
15312
|
return (this.userAgent ||
|
|
15311
15313
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
15312
15314
|
};
|