@stream-io/video-client 0.1.7 → 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 +14 -0
- package/dist/index.browser.es.js +13 -10
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +13 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +13 -10
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +6 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +9 -0
- package/src/__tests__/server-side/call-types.test.ts +47 -1
- package/src/__tests__/server-side/call.test.ts +14 -2
- package/src/devices/devices.ts +4 -7
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.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
|
+
|
|
12
|
+
### [0.1.8](https://github.com/GetStream/stream-video-js/compare/client0.1.7...client0.1.8) (2023-07-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add call.create ([#862](https://github.com/GetStream/stream-video-js/issues/862)) ([6d07d0b](https://github.com/GetStream/stream-video-js/commit/6d07d0b5248b6339b4ee95af90dba4c4e1f5c5db))
|
|
18
|
+
|
|
5
19
|
### [0.1.7](https://github.com/GetStream/stream-video-js/compare/client0.1.6...client0.1.7) (2023-07-26)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -9539,6 +9539,14 @@ class Call {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
return response;
|
|
9541
9541
|
});
|
|
9542
|
+
/**
|
|
9543
|
+
* Creates a call
|
|
9544
|
+
*
|
|
9545
|
+
* @param data the data to create the call with.
|
|
9546
|
+
*/
|
|
9547
|
+
this.create = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
9548
|
+
return this.getOrCreate(data);
|
|
9549
|
+
});
|
|
9542
9550
|
/**
|
|
9543
9551
|
* A shortcut for {@link Call.get} with `ring` parameter set to `true`.
|
|
9544
9552
|
* Will send a `call.ring` event to the call members.
|
|
@@ -11636,7 +11644,7 @@ class WSConnectionFallback {
|
|
|
11636
11644
|
}
|
|
11637
11645
|
}
|
|
11638
11646
|
|
|
11639
|
-
const version = '0.1.
|
|
11647
|
+
const version = '0.1.9';
|
|
11640
11648
|
|
|
11641
11649
|
const logger = getLogger(['location']);
|
|
11642
11650
|
const HINT_URL = `https://hint.stream-io-video.com/`;
|
|
@@ -12614,15 +12622,12 @@ const getDevices = (constraints) => {
|
|
|
12614
12622
|
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
|
12615
12623
|
subscriber.next(devices);
|
|
12616
12624
|
// If we stop the tracks before enumerateDevices -> the labels won't show up in Firefox
|
|
12617
|
-
media
|
|
12625
|
+
disposeOfMediaStream(media);
|
|
12618
12626
|
subscriber.complete();
|
|
12619
12627
|
});
|
|
12620
12628
|
})
|
|
12621
12629
|
.catch((error) => {
|
|
12622
|
-
|
|
12623
|
-
if (logger) {
|
|
12624
|
-
logger('error', 'Failed to get devices', error);
|
|
12625
|
-
}
|
|
12630
|
+
getLogger(['devices'])('error', 'Failed to get devices', error);
|
|
12626
12631
|
subscriber.error(error);
|
|
12627
12632
|
});
|
|
12628
12633
|
});
|
|
@@ -12693,12 +12698,11 @@ const getAudioOutputDevices = () => {
|
|
|
12693
12698
|
return audioDevices$.pipe(map$2((values) => values.filter((d) => d.kind === 'audiooutput')));
|
|
12694
12699
|
};
|
|
12695
12700
|
const getStream = (constraints) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12696
|
-
var _a;
|
|
12697
12701
|
try {
|
|
12698
12702
|
return yield navigator.mediaDevices.getUserMedia(constraints);
|
|
12699
12703
|
}
|
|
12700
12704
|
catch (e) {
|
|
12701
|
-
|
|
12705
|
+
getLogger(['devices'])('error', `Failed get user media`, {
|
|
12702
12706
|
error: e,
|
|
12703
12707
|
constraints: constraints,
|
|
12704
12708
|
});
|
|
@@ -12744,12 +12748,11 @@ const getVideoStream = (trackConstraints) => __awaiter(void 0, void 0, void 0, f
|
|
|
12744
12748
|
* @param options any additional options to pass to the [`getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) API.
|
|
12745
12749
|
*/
|
|
12746
12750
|
const getScreenShareStream = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12747
|
-
var _b;
|
|
12748
12751
|
try {
|
|
12749
12752
|
return yield navigator.mediaDevices.getDisplayMedia(Object.assign({ video: true, audio: false }, options));
|
|
12750
12753
|
}
|
|
12751
12754
|
catch (e) {
|
|
12752
|
-
|
|
12755
|
+
getLogger(['devices'])('error', 'Failed to get screen share stream', e);
|
|
12753
12756
|
throw e;
|
|
12754
12757
|
}
|
|
12755
12758
|
});
|