@stream-io/video-client 0.0.32 → 0.0.34
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 +9 -0
- package/dist/index.browser.es.js +8 -19
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +8 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -19
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +1 -1
- package/dist/src/gen/video/sfu/event/events.d.ts +0 -4
- package/dist/src/gen/video/sfu/models/models.d.ts +4 -8
- package/package.json +1 -1
- package/src/Call.ts +2 -2
- package/src/gen/video/sfu/event/events.ts +1 -12
- package/src/gen/video/sfu/models/models.ts +4 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.34](https://github.com/GetStream/stream-video-js/compare/client0.0.33...client0.0.34) (2023-07-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* prevent double publishStream invocation ([#749](https://github.com/GetStream/stream-video-js/issues/749)) ([9e3c22f](https://github.com/GetStream/stream-video-js/commit/9e3c22fd37d8dc00d275e8b69f9cd18f67e366fe))
|
|
11
|
+
|
|
12
|
+
### [0.0.33](https://github.com/GetStream/stream-video-js/compare/client0.0.32...client0.0.33) (2023-07-04)
|
|
13
|
+
|
|
5
14
|
### [0.0.32](https://github.com/GetStream/stream-video-js/compare/client0.0.31...client0.0.32) (2023-07-04)
|
|
6
15
|
|
|
7
16
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -832,6 +832,10 @@ var ErrorCode;
|
|
|
832
832
|
* @generated from protobuf enum value: ERROR_CODE_PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND = 103;
|
|
833
833
|
*/
|
|
834
834
|
ErrorCode[ErrorCode["PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND"] = 103] = "PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND";
|
|
835
|
+
/**
|
|
836
|
+
* @generated from protobuf enum value: ERROR_CODE_LIVE_ENDED = 104;
|
|
837
|
+
*/
|
|
838
|
+
ErrorCode[ErrorCode["LIVE_ENDED"] = 104] = "LIVE_ENDED";
|
|
835
839
|
/**
|
|
836
840
|
* @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_NOT_FOUND = 200;
|
|
837
841
|
*/
|
|
@@ -844,14 +848,6 @@ var ErrorCode;
|
|
|
844
848
|
* @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_MIGRATION_FAILED = 202;
|
|
845
849
|
*/
|
|
846
850
|
ErrorCode[ErrorCode["PARTICIPANT_MIGRATION_FAILED"] = 202] = "PARTICIPANT_MIGRATION_FAILED";
|
|
847
|
-
/**
|
|
848
|
-
* @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_MIGRATING = 203;
|
|
849
|
-
*/
|
|
850
|
-
ErrorCode[ErrorCode["PARTICIPANT_MIGRATING"] = 203] = "PARTICIPANT_MIGRATING";
|
|
851
|
-
/**
|
|
852
|
-
* @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_RECONNECT_FAILED = 204;
|
|
853
|
-
*/
|
|
854
|
-
ErrorCode[ErrorCode["PARTICIPANT_RECONNECT_FAILED"] = 204] = "PARTICIPANT_RECONNECT_FAILED";
|
|
855
851
|
/**
|
|
856
852
|
* @generated from protobuf enum value: ERROR_CODE_CALL_NOT_FOUND = 300;
|
|
857
853
|
*/
|
|
@@ -4191,11 +4187,10 @@ class JoinResponse$Type extends MessageType {
|
|
|
4191
4187
|
constructor() {
|
|
4192
4188
|
super('stream.video.sfu.event.JoinResponse', [
|
|
4193
4189
|
{ no: 1, name: 'call_state', kind: 'message', T: () => CallState$1 },
|
|
4194
|
-
{ no: 2, name: 'ice_restart', kind: 'scalar', T: 8 /*ScalarType.BOOL*/ },
|
|
4195
4190
|
]);
|
|
4196
4191
|
}
|
|
4197
4192
|
create(value) {
|
|
4198
|
-
const message = {
|
|
4193
|
+
const message = {};
|
|
4199
4194
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, {
|
|
4200
4195
|
enumerable: false,
|
|
4201
4196
|
value: this,
|
|
@@ -4212,9 +4207,6 @@ class JoinResponse$Type extends MessageType {
|
|
|
4212
4207
|
case /* stream.video.sfu.models.CallState call_state */ 1:
|
|
4213
4208
|
message.callState = CallState$1.internalBinaryRead(reader, reader.uint32(), options, message.callState);
|
|
4214
4209
|
break;
|
|
4215
|
-
case /* bool ice_restart */ 2:
|
|
4216
|
-
message.iceRestart = reader.bool();
|
|
4217
|
-
break;
|
|
4218
4210
|
default:
|
|
4219
4211
|
let u = options.readUnknownField;
|
|
4220
4212
|
if (u === 'throw')
|
|
@@ -4230,9 +4222,6 @@ class JoinResponse$Type extends MessageType {
|
|
|
4230
4222
|
/* stream.video.sfu.models.CallState call_state = 1; */
|
|
4231
4223
|
if (message.callState)
|
|
4232
4224
|
CallState$1.internalBinaryWrite(message.callState, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4233
|
-
/* bool ice_restart = 2; */
|
|
4234
|
-
if (message.iceRestart !== false)
|
|
4235
|
-
writer.tag(2, WireType.Varint).bool(message.iceRestart);
|
|
4236
4225
|
let u = options.writeUnknownFields;
|
|
4237
4226
|
if (u !== false)
|
|
4238
4227
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -10071,7 +10060,7 @@ class Call {
|
|
|
10071
10060
|
/**
|
|
10072
10061
|
* Sends a custom event to all call participants.
|
|
10073
10062
|
*
|
|
10074
|
-
* @param
|
|
10063
|
+
* @param payload the payload to send.
|
|
10075
10064
|
*/
|
|
10076
10065
|
this.sendCustomEvent = (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
10077
10066
|
return this.streamClient.post(`${this.streamClientBasePath}/event`, { custom: payload });
|
|
@@ -10134,7 +10123,7 @@ class Call {
|
|
|
10134
10123
|
const currentUserId = this.currentUserId;
|
|
10135
10124
|
if (currentUserId &&
|
|
10136
10125
|
metadata.blocked_user_ids.includes(currentUserId)) {
|
|
10137
|
-
this.logger('info', 'Leaving call
|
|
10126
|
+
this.logger('info', 'Leaving call because of being blocked');
|
|
10138
10127
|
yield this.leave();
|
|
10139
10128
|
}
|
|
10140
10129
|
})),
|
|
@@ -11839,7 +11828,7 @@ class StreamClient {
|
|
|
11839
11828
|
}
|
|
11840
11829
|
getUserAgent() {
|
|
11841
11830
|
return (this.userAgent ||
|
|
11842
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11831
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.33"}`);
|
|
11843
11832
|
}
|
|
11844
11833
|
setUserAgent(userAgent) {
|
|
11845
11834
|
this.userAgent = userAgent;
|