@stream-io/video-client 0.1.8 → 0.1.9
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 +7 -0
- package/dist/index.browser.es.js +5 -10
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -10
- package/dist/index.es.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/__tests__/server-side/call-types.test.ts +36 -0
- package/src/__tests__/server-side/call.test.ts +13 -1
- package/src/devices/devices.ts +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.1.9](https://github.com/GetStream/stream-video-js/compare/client0.1.8...client0.1.9) (2023-07-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
5
12
|
### [0.1.8](https://github.com/GetStream/stream-video-js/compare/client0.1.7...client0.1.8) (2023-07-27)
|
|
6
13
|
|
|
7
14
|
|
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.9';
|
|
11648
11648
|
|
|
11649
11649
|
const logger = getLogger(['location']);
|
|
11650
11650
|
const HINT_URL = `https://hint.stream-io-video.com/`;
|
|
@@ -12622,15 +12622,12 @@ const getDevices = (constraints) => {
|
|
|
12622
12622
|
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
|
12623
12623
|
subscriber.next(devices);
|
|
12624
12624
|
// If we stop the tracks before enumerateDevices -> the labels won't show up in Firefox
|
|
12625
|
-
media
|
|
12625
|
+
disposeOfMediaStream(media);
|
|
12626
12626
|
subscriber.complete();
|
|
12627
12627
|
});
|
|
12628
12628
|
})
|
|
12629
12629
|
.catch((error) => {
|
|
12630
|
-
|
|
12631
|
-
if (logger) {
|
|
12632
|
-
logger('error', 'Failed to get devices', error);
|
|
12633
|
-
}
|
|
12630
|
+
getLogger(['devices'])('error', 'Failed to get devices', error);
|
|
12634
12631
|
subscriber.error(error);
|
|
12635
12632
|
});
|
|
12636
12633
|
});
|
|
@@ -12701,12 +12698,11 @@ const getAudioOutputDevices = () => {
|
|
|
12701
12698
|
return audioDevices$.pipe(map$2((values) => values.filter((d) => d.kind === 'audiooutput')));
|
|
12702
12699
|
};
|
|
12703
12700
|
const getStream = (constraints) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12704
|
-
var _a;
|
|
12705
12701
|
try {
|
|
12706
12702
|
return yield navigator.mediaDevices.getUserMedia(constraints);
|
|
12707
12703
|
}
|
|
12708
12704
|
catch (e) {
|
|
12709
|
-
|
|
12705
|
+
getLogger(['devices'])('error', `Failed get user media`, {
|
|
12710
12706
|
error: e,
|
|
12711
12707
|
constraints: constraints,
|
|
12712
12708
|
});
|
|
@@ -12752,12 +12748,11 @@ const getVideoStream = (trackConstraints) => __awaiter(void 0, void 0, void 0, f
|
|
|
12752
12748
|
* @param options any additional options to pass to the [`getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) API.
|
|
12753
12749
|
*/
|
|
12754
12750
|
const getScreenShareStream = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12755
|
-
var _b;
|
|
12756
12751
|
try {
|
|
12757
12752
|
return yield navigator.mediaDevices.getDisplayMedia(Object.assign({ video: true, audio: false }, options));
|
|
12758
12753
|
}
|
|
12759
12754
|
catch (e) {
|
|
12760
|
-
|
|
12755
|
+
getLogger(['devices'])('error', 'Failed to get screen share stream', e);
|
|
12761
12756
|
throw e;
|
|
12762
12757
|
}
|
|
12763
12758
|
});
|