@stream-io/video-client 0.6.3 → 0.6.4
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 +14 -10
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +14 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +14 -10
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamVideoClient.d.ts +1 -1
- package/dist/src/devices/InputMediaDeviceManager.d.ts +1 -1
- package/dist/src/devices/SpeakerManager.d.ts +4 -3
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +1 -1
- package/src/devices/InputMediaDeviceManager.ts +4 -2
- package/src/devices/SpeakerManager.ts +18 -6
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.6.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.6.3...@stream-io/video-client-0.6.4) (2024-03-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **react-native:** improve error logging for speaker manager hook and improve usage of incall manager in SDK ([#1299](https://github.com/GetStream/stream-video-js/issues/1299)) ([9527c41](https://github.com/GetStream/stream-video-js/commit/9527c4176d4e46224ddec18e3fddfb404e0aaae5))
|
|
11
|
+
|
|
5
12
|
### [0.6.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.6.2...@stream-io/video-client-0.6.3) (2024-03-25)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -10385,12 +10385,12 @@ class InputMediaDeviceManager {
|
|
|
10385
10385
|
/**
|
|
10386
10386
|
* Selects a device.
|
|
10387
10387
|
*
|
|
10388
|
-
* Note:
|
|
10388
|
+
* Note: This method is not supported in React Native
|
|
10389
10389
|
* @param deviceId the device id to select.
|
|
10390
10390
|
*/
|
|
10391
10391
|
async select(deviceId) {
|
|
10392
10392
|
if (isReactNative()) {
|
|
10393
|
-
throw new Error('This method is not supported in React Native');
|
|
10393
|
+
throw new Error('This method is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for reference.');
|
|
10394
10394
|
}
|
|
10395
10395
|
if (deviceId === this.state.selectedDevice) {
|
|
10396
10396
|
return;
|
|
@@ -11291,22 +11291,26 @@ class SpeakerManager {
|
|
|
11291
11291
|
* Lists the available audio output devices
|
|
11292
11292
|
*
|
|
11293
11293
|
* Note: It prompts the user for a permission to use devices (if not already granted)
|
|
11294
|
+
* Note: This method is not supported in React Native
|
|
11294
11295
|
*
|
|
11295
11296
|
* @returns an Observable that will be updated if a device is connected or disconnected
|
|
11296
11297
|
*/
|
|
11297
11298
|
listDevices() {
|
|
11299
|
+
if (isReactNative()) {
|
|
11300
|
+
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
11301
|
+
}
|
|
11298
11302
|
return getAudioOutputDevices();
|
|
11299
11303
|
}
|
|
11300
11304
|
/**
|
|
11301
11305
|
* Select a device.
|
|
11302
11306
|
*
|
|
11303
|
-
* Note:
|
|
11307
|
+
* Note: This method is not supported in React Native
|
|
11304
11308
|
*
|
|
11305
11309
|
* @param deviceId empty string means the system default
|
|
11306
11310
|
*/
|
|
11307
11311
|
select(deviceId) {
|
|
11308
11312
|
if (isReactNative()) {
|
|
11309
|
-
throw new Error('This feature is not supported in React Native');
|
|
11313
|
+
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
11310
11314
|
}
|
|
11311
11315
|
this.state.setDevice(deviceId);
|
|
11312
11316
|
}
|
|
@@ -11314,11 +11318,11 @@ class SpeakerManager {
|
|
|
11314
11318
|
* Set the volume of the audio elements
|
|
11315
11319
|
* @param volume a number between 0 and 1.
|
|
11316
11320
|
*
|
|
11317
|
-
* Note:
|
|
11321
|
+
* Note: This method is not supported in React Native
|
|
11318
11322
|
*/
|
|
11319
11323
|
setVolume(volume) {
|
|
11320
11324
|
if (isReactNative()) {
|
|
11321
|
-
throw new Error('This feature is not supported in React Native');
|
|
11325
|
+
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
11322
11326
|
}
|
|
11323
11327
|
if (volume && (volume < 0 || volume > 1)) {
|
|
11324
11328
|
throw new Error('Volume must be between 0 and 1');
|
|
@@ -11328,14 +11332,14 @@ class SpeakerManager {
|
|
|
11328
11332
|
/**
|
|
11329
11333
|
* Set the volume of a participant.
|
|
11330
11334
|
*
|
|
11331
|
-
* Note:
|
|
11335
|
+
* Note: This method is not supported in React Native.
|
|
11332
11336
|
*
|
|
11333
11337
|
* @param sessionId the participant's session id.
|
|
11334
11338
|
* @param volume a number between 0 and 1. Set it to `undefined` to use the default volume.
|
|
11335
11339
|
*/
|
|
11336
11340
|
setParticipantVolume(sessionId, volume) {
|
|
11337
11341
|
if (isReactNative()) {
|
|
11338
|
-
throw new Error('This feature is not supported in React Native');
|
|
11342
|
+
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
11339
11343
|
}
|
|
11340
11344
|
if (volume && (volume < 0 || volume > 1)) {
|
|
11341
11345
|
throw new Error('Volume must be between 0 and 1, or undefined');
|
|
@@ -14354,7 +14358,7 @@ class StreamClient {
|
|
|
14354
14358
|
});
|
|
14355
14359
|
};
|
|
14356
14360
|
this.getUserAgent = () => {
|
|
14357
|
-
const version = "0.6.
|
|
14361
|
+
const version = "0.6.4" ;
|
|
14358
14362
|
return (this.userAgent ||
|
|
14359
14363
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14360
14364
|
};
|
|
@@ -14565,7 +14569,7 @@ class StreamVideoClient {
|
|
|
14565
14569
|
* Creates a new call.
|
|
14566
14570
|
*
|
|
14567
14571
|
* @param type the type of the call.
|
|
14568
|
-
* @param id the id of the call
|
|
14572
|
+
* @param id the id of the call.
|
|
14569
14573
|
*/
|
|
14570
14574
|
this.call = (type, id) => {
|
|
14571
14575
|
return new Call({
|