@stream-io/video-client 0.1.8 → 0.1.10
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 +11 -10
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +11 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +11 -10
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamVideoClient.d.ts +4 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +7 -0
- package/src/__tests__/server-side/call-members.test.ts +1 -1
- package/src/__tests__/server-side/call-types.test.ts +36 -0
- package/src/__tests__/server-side/call.test.ts +14 -2
- package/src/devices/devices.ts +4 -7
- package/src/rtc/codecs.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.1.10](https://github.com/GetStream/stream-video-js/compare/client0.1.9...client0.1.10) (2023-08-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **client:** Create state shortcut for client state store ([#888](https://github.com/GetStream/stream-video-js/issues/888)) ([799c90d](https://github.com/GetStream/stream-video-js/commit/799c90d7a22fc90b497493764916e3f620a1481b))
|
|
11
|
+
|
|
12
|
+
### [0.1.9](https://github.com/GetStream/stream-video-js/compare/client0.1.8...client0.1.9) (2023-07-28)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* set initial device state regardless of call state ([#869](https://github.com/GetStream/stream-video-js/issues/869)) ([3c3cb29](https://github.com/GetStream/stream-video-js/commit/3c3cb29e5585e30b0eacc4b0ecb7bab2e075c111))
|
|
18
|
+
|
|
5
19
|
### [0.1.8](https://github.com/GetStream/stream-video-js/compare/client0.1.7...client0.1.8) (2023-07-27)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -11644,7 +11644,7 @@ class WSConnectionFallback {
|
|
|
11644
11644
|
}
|
|
11645
11645
|
}
|
|
11646
11646
|
|
|
11647
|
-
const version = '0.1.
|
|
11647
|
+
const version = '0.1.10';
|
|
11648
11648
|
|
|
11649
11649
|
const logger = getLogger(['location']);
|
|
11650
11650
|
const HINT_URL = `https://hint.stream-io-video.com/`;
|
|
@@ -12458,6 +12458,12 @@ class StreamVideoClient {
|
|
|
12458
12458
|
}
|
|
12459
12459
|
}
|
|
12460
12460
|
}
|
|
12461
|
+
/**
|
|
12462
|
+
* Return the reactive state store, use this if you want to be notified about changes to the client state
|
|
12463
|
+
*/
|
|
12464
|
+
get state() {
|
|
12465
|
+
return this.readOnlyStateStore;
|
|
12466
|
+
}
|
|
12461
12467
|
/**
|
|
12462
12468
|
* Connects the given user to the client.
|
|
12463
12469
|
* Only one user can connect at a time, if you want to change users, call `disconnectUser` before connecting a new user.
|
|
@@ -12622,15 +12628,12 @@ const getDevices = (constraints) => {
|
|
|
12622
12628
|
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
|
12623
12629
|
subscriber.next(devices);
|
|
12624
12630
|
// If we stop the tracks before enumerateDevices -> the labels won't show up in Firefox
|
|
12625
|
-
media
|
|
12631
|
+
disposeOfMediaStream(media);
|
|
12626
12632
|
subscriber.complete();
|
|
12627
12633
|
});
|
|
12628
12634
|
})
|
|
12629
12635
|
.catch((error) => {
|
|
12630
|
-
|
|
12631
|
-
if (logger) {
|
|
12632
|
-
logger('error', 'Failed to get devices', error);
|
|
12633
|
-
}
|
|
12636
|
+
getLogger(['devices'])('error', 'Failed to get devices', error);
|
|
12634
12637
|
subscriber.error(error);
|
|
12635
12638
|
});
|
|
12636
12639
|
});
|
|
@@ -12701,12 +12704,11 @@ const getAudioOutputDevices = () => {
|
|
|
12701
12704
|
return audioDevices$.pipe(map$2((values) => values.filter((d) => d.kind === 'audiooutput')));
|
|
12702
12705
|
};
|
|
12703
12706
|
const getStream = (constraints) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12704
|
-
var _a;
|
|
12705
12707
|
try {
|
|
12706
12708
|
return yield navigator.mediaDevices.getUserMedia(constraints);
|
|
12707
12709
|
}
|
|
12708
12710
|
catch (e) {
|
|
12709
|
-
|
|
12711
|
+
getLogger(['devices'])('error', `Failed get user media`, {
|
|
12710
12712
|
error: e,
|
|
12711
12713
|
constraints: constraints,
|
|
12712
12714
|
});
|
|
@@ -12752,12 +12754,11 @@ const getVideoStream = (trackConstraints) => __awaiter(void 0, void 0, void 0, f
|
|
|
12752
12754
|
* @param options any additional options to pass to the [`getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) API.
|
|
12753
12755
|
*/
|
|
12754
12756
|
const getScreenShareStream = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12755
|
-
var _b;
|
|
12756
12757
|
try {
|
|
12757
12758
|
return yield navigator.mediaDevices.getDisplayMedia(Object.assign({ video: true, audio: false }, options));
|
|
12758
12759
|
}
|
|
12759
12760
|
catch (e) {
|
|
12760
|
-
|
|
12761
|
+
getLogger(['devices'])('error', 'Failed to get screen share stream', e);
|
|
12761
12762
|
throw e;
|
|
12762
12763
|
}
|
|
12763
12764
|
});
|