Skip to content

Commit bd11218

Browse files
committed
Merge branch 'main' into PBE-5856-feat/theme-consolidation
2 parents b00a215 + d33f188 commit bd11218

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

packages/client/docusaurus/docs/javascript/02-guides/04-noise-cancellation.mdx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm install @stream-io/audio-filters-web
2727

2828
## Integration
2929

30-
In the following code snippet, we show how to check if platform is supported, initialize the plugin and enable/disable it.
30+
In the following code snippet, we show how to check if а platform is supported, initialize the plugin, and enable/disable it.
3131

3232
```typescript
3333
import { NoiseCancellation } from '@stream-io/audio-filters-web';
@@ -61,3 +61,19 @@ const off = noiseCancellation.on('change', (v) => {
6161
console.log(`Noise Cancellation is ${v ? 'enabled' : 'disabled'}`);
6262
});
6363
```
64+
65+
In action, the most straight-forward integration should look like this:
66+
67+
```typescript
68+
import { NoiseCancellation } from '@stream-io/audio-filters-web';
69+
70+
const call = client.call(type, id);
71+
await call.get(); // or call.getOrCreate()
72+
73+
const noiseCancellation = new NoiseCancellation();
74+
const isSupported = await noiseCancellation.isSupported();
75+
if (isSupported) {
76+
await noiseCancellation.init();
77+
await call.microphone.enableNoiseCancellation(noiseCancellation);
78+
}
79+
```

packages/react-sdk/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
44

5+
## [1.4.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.4.3...@stream-io/video-react-sdk-1.4.4) (2024-10-01)
6+
7+
8+
### Bug Fixes
9+
10+
* React v17 compatibility ([#1503](https://github.com/GetStream/stream-video-js/issues/1503)) ([a1797cf](https://github.com/GetStream/stream-video-js/commit/a1797cf1d62b1a74f0101bbd185b2cc0e1176575))
11+
512
## [1.4.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.4.2...@stream-io/video-react-sdk-1.4.3) (2024-09-24)
613

714
### Dependency Updates

packages/react-sdk/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-io/video-react-sdk",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"packageManager": "[email protected]",
55
"main": "./dist/index.cjs.js",
66
"module": "./dist/index.es.js",
@@ -40,8 +40,8 @@
4040
"react-chartjs-2": "^5.2.0"
4141
},
4242
"peerDependencies": {
43-
"react": "^18 || ^19",
44-
"react-dom": "^18 || ^19"
43+
"react": "^17 || ^18 || ^19",
44+
"react-dom": "^17 || ^18 || ^19"
4545
},
4646
"devDependencies": {
4747
"@rollup/plugin-json": "^6.1.0",

sample-apps/react/react-dogfood/components/MeetingUI.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useRouter } from 'next/router';
22
import { JSX, useCallback, useEffect, useState } from 'react';
3+
import { isFirefox } from 'mobile-device-detect';
34
import Gleap from 'gleap';
45
import {
56
CallingState,
@@ -59,7 +60,8 @@ export const MeetingUI = ({ chatClient, mode }: MeetingUIProps) => {
5960
if (!fastJoin) setShow('loading');
6061
if (!call) throw new Error('No active call found');
6162
try {
62-
const prontoDefaultCodec = isProntoEnvironment ? 'h264' : 'vp8';
63+
const prontoDefaultCodec =
64+
isProntoEnvironment && !isFirefox ? 'h264' : 'vp8';
6365
const preferredCodec = videoCodecOverride || prontoDefaultCodec;
6466

6567
const videoSettings = call.state.settings?.video;

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7616,8 +7616,8 @@ __metadata:
76167616
rollup: ^4.22.0
76177617
typescript: ^5.5.2
76187618
peerDependencies:
7619-
react: ^18 || ^19
7620-
react-dom: ^18 || ^19
7619+
react: ^17 || ^18 || ^19
7620+
react-dom: ^17 || ^18 || ^19
76217621
languageName: unknown
76227622
linkType: soft
76237623

0 commit comments

Comments
 (0)