Skip to content

Commit 6bcf26e

Browse files
committed
Merge branch 'main' into report-low-power-and-thermal-info
2 parents 2eb759c + 16cc95c commit 6bcf26e

File tree

254 files changed

+10863
-5975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+10863
-5975
lines changed

.github/workflows/deploy-react-sample-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Setup Node
7373
uses: actions/setup-node@v4
7474
with:
75-
node-version: 20.x
75+
node-version: 22.x
7676
cache: 'yarn'
7777

7878
- name: Install Dependencies

.github/workflows/egress-composite-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Node
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 20.x
31+
node-version: 22.x
3232
cache: 'yarn'
3333
cache-dependency-path: 'yarn.lock'
3434

.github/workflows/react-native-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
name: Deploy iOS
131131
needs: build_ios
132132
timeout-minutes: 60
133-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/PBE-5855-feat/react-native-video-design-v2' }}
133+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/use-vp8-on-ios' }}
134134
runs-on: macos-latest
135135
steps:
136136
- uses: actions/checkout@v4

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Node
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: 20.x
30+
node-version: 22.x
3131
cache: 'yarn'
3232

3333
- name: ESLint Cache

.github/workflows/version-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Node
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 20.x
32+
node-version: 22.x
3333
cache: 'yarn'
3434

3535
- name: ESLint Cache

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v22

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "See license in LICENSE",
88
"workspaces": [
99
"packages/*",
10-
"sample-apps/**/*"
10+
"sample-apps/*/*"
1111
],
1212
"scripts": {
1313
"start:react:sdk": "yarn workspace @stream-io/video-react-sdk run start",

packages/client/CHANGELOG.md

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

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

5+
## [1.11.10](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.9...@stream-io/video-client-1.11.10) (2024-11-28)
6+
7+
8+
### Bug Fixes
9+
10+
* ringing calls not being left when ended ([#1601](https://github.com/GetStream/stream-video-js/issues/1601)) ([1c2b9d1](https://github.com/GetStream/stream-video-js/commit/1c2b9d1a54767652acc52cae9bb3d348c9df566f))
11+
12+
## [1.11.9](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.8...@stream-io/video-client-1.11.9) (2024-11-27)
13+
14+
15+
### Bug Fixes
16+
17+
* cover some device selection edge cases ([#1604](https://github.com/GetStream/stream-video-js/issues/1604)) ([a8fc0ea](https://github.com/GetStream/stream-video-js/commit/a8fc0eaf1ed6c79ce24f77f52351a1e90701bd02))
18+
19+
## [1.11.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.7...@stream-io/video-client-1.11.8) (2024-11-27)
20+
21+
22+
### Bug Fixes
23+
24+
* **ios:** use vp8 when h264 constrainted baseline isn't available ([#1597](https://github.com/GetStream/stream-video-js/issues/1597)) ([6281216](https://github.com/GetStream/stream-video-js/commit/62812161cef5e9917c504dbc4cd9257709ea5fa1))
25+
26+
## [1.11.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.6...@stream-io/video-client-1.11.7) (2024-11-26)
27+
28+
29+
### Bug Fixes
30+
31+
* remove unused code from the coordinator websocket impl ([#1563](https://github.com/GetStream/stream-video-js/issues/1563)) ([921b820](https://github.com/GetStream/stream-video-js/commit/921b820133885dac299dab343cee3fc4b08705ce))
32+
33+
## [1.11.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.5...@stream-io/video-client-1.11.6) (2024-11-22)
34+
35+
36+
### Bug Fixes
37+
38+
* force single codec preference in the SDP ([#1588](https://github.com/GetStream/stream-video-js/issues/1588)) ([4afff09](https://github.com/GetStream/stream-video-js/commit/4afff09a778f8567176d22bcc22d36001dca7cd3)), closes [#1581](https://github.com/GetStream/stream-video-js/issues/1581)
39+
40+
## [1.11.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.4...@stream-io/video-client-1.11.5) (2024-11-22)
41+
42+
43+
### Bug Fixes
44+
45+
* unhandled promise rejections during reconnect ([#1585](https://github.com/GetStream/stream-video-js/issues/1585)) ([920c4ea](https://github.com/GetStream/stream-video-js/commit/920c4ea3b3f622430b35ac1bade74a6206ee17e5)), closes [/github.com/GetStream/stream-video-js/pull/1585/files#diff-420f6ddab47c1be72fd9ce8c99e1fa2b9f5f0495b7c367546ee0ff634beaed81](https://github.com/GetStream//github.com/GetStream/stream-video-js/pull/1585/files/issues/diff-420f6ddab47c1be72fd9ce8c99e1fa2b9f5f0495b7c367546ee0ff634beaed81)
46+
47+
## [1.11.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.3...@stream-io/video-client-1.11.4) (2024-11-21)
48+
49+
50+
### Bug Fixes
51+
52+
* experimental option to force single codec preference in the SDP ([#1581](https://github.com/GetStream/stream-video-js/issues/1581)) ([894a86e](https://github.com/GetStream/stream-video-js/commit/894a86e407dc0dd36b7463bb964c86da0c3055d1))
53+
54+
## [1.11.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.2...@stream-io/video-client-1.11.3) (2024-11-20)
55+
56+
57+
### Bug Fixes
58+
59+
* respect codec overrides when computing the video layers ([#1582](https://github.com/GetStream/stream-video-js/issues/1582)) ([c22b83e](https://github.com/GetStream/stream-video-js/commit/c22b83ef710f2188e680b73790154de046a824e9))
60+
561
## [1.11.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.1...@stream-io/video-client-1.11.2) (2024-11-14)
662

763

packages/client/package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-io/video-client",
3-
"version": "1.11.2",
3+
"version": "1.11.10",
44
"packageManager": "yarn@3.2.4",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.es.js",
@@ -31,15 +31,11 @@
3131
"@protobuf-ts/runtime": "^2.9.4",
3232
"@protobuf-ts/runtime-rpc": "^2.9.4",
3333
"@protobuf-ts/twirp-transport": "^2.9.4",
34-
"@types/ws": "^8.5.7",
35-
"axios": "^1.6.0",
36-
"base64-js": "^1.5.1",
37-
"isomorphic-ws": "^5.0.0",
34+
"axios": "^1.7.7",
3835
"rxjs": "~7.8.1",
3936
"sdp-transform": "^2.14.1",
4037
"ua-parser-js": "^1.0.36",
41-
"webrtc-adapter": "^8.2.3",
42-
"ws": "^8.14.2"
38+
"webrtc-adapter": "^8.2.3"
4339
},
4440
"devDependencies": {
4541
"@openapitools/openapi-generator-cli": "^2.13.4",
@@ -49,15 +45,15 @@
4945
"@stream-io/node-sdk": "^0.4.3",
5046
"@types/sdp-transform": "^2.4.7",
5147
"@types/ua-parser-js": "^0.7.37",
52-
"@vitest/coverage-v8": "^0.34.4",
48+
"@vitest/coverage-v8": "^2.1.4",
5349
"dotenv": "^16.3.1",
5450
"happy-dom": "^11.0.2",
5551
"prettier": "^3.3.2",
5652
"rimraf": "^5.0.7",
5753
"rollup": "^4.22.0",
5854
"typescript": "^5.5.2",
5955
"vite": "^5.4.6",
60-
"vitest": "^1.0.0",
61-
"vitest-mock-extended": "^1.2.1"
56+
"vitest": "^2.1.4",
57+
"vitest-mock-extended": "^2.0.2"
6258
}
6359
}

packages/client/src/Call.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export class Call {
496496
* Leave the call and stop the media streams that were published by the call.
497497
*/
498498
leave = async ({
499-
reject = false,
499+
reject,
500500
reason = 'user is leaving the call',
501501
}: CallLeaveOptions = {}) => {
502502
await withoutConcurrency(this.joinLeaveConcurrencyTag, async () => {
@@ -516,13 +516,14 @@ export class Call {
516516
await waitUntilCallJoined();
517517
}
518518

519-
if (callingState === CallingState.RINGING) {
519+
if (callingState === CallingState.RINGING && reject !== false) {
520520
if (reject) {
521521
await this.reject(reason);
522522
} else {
523+
// if reject was undefined, we still have to cancel the call automatically
524+
// when I am the creator and everyone else left the call
523525
const hasOtherParticipants = this.state.remoteParticipants.length > 0;
524526
if (this.isCreatedByMe && !hasOtherParticipants) {
525-
// I'm the one who started the call, so I should cancel it when there are no other participants.
526527
await this.reject('cancel');
527528
}
528529
}

0 commit comments

Comments
 (0)