@voltkit-rtc/react-native 0.1.3 → 0.1.5
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 +39 -1
- package/README.md +12 -4
- package/lib/commonjs/globals.js +19 -0
- package/lib/commonjs/globals.js.map +1 -1
- package/lib/commonjs/native.js +1 -1
- package/lib/commonjs/platform/common.js +1 -1
- package/lib/module/globals.js +19 -0
- package/lib/module/globals.js.map +1 -1
- package/lib/module/native.js +1 -1
- package/lib/module/platform/common.js +1 -1
- package/lib/typescript/commonjs/globals.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/native.d.ts +1 -1
- package/lib/typescript/commonjs/platform/common.d.ts +1 -1
- package/lib/typescript/module/globals.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/native.d.ts +1 -1
- package/lib/typescript/module/platform/common.d.ts +1 -1
- package/package.json +4 -4
- package/src/globals.ts +17 -0
- package/src/index.ts +1 -0
- package/src/native.ts +1 -1
- package/src/platform/common.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
2026-11-05. A developer's findings on 0.1.4, and the round of 2026-11-05 (decisions D2 and D10). Peer dependencies
|
|
6
|
+
`@voltkit-rtc/client >=0.9.17 <0.10.0` and `@voltkit-rtc/react ^0.1.5`. The native code is the same, but build the app again
|
|
7
|
+
after upgrading: its version check reads this package's version. This round ran the unit tests, the typecheck, the build
|
|
8
|
+
and the docs' examples; not the emulator.
|
|
9
|
+
|
|
10
|
+
- **`react-native-webrtc`'s debug logs are off in release builds** (a developer's finding; D10). It turns them on as it
|
|
11
|
+
loads, for every build: 31 `rn-webrtc:*:DEBUG` lines for one join, in a shipped app's log. They carry connection and
|
|
12
|
+
track ids, no session description or key. Outside `__DEV__` the SDK turns them off right after loading it, and leaves
|
|
13
|
+
its warnings and errors on; a development build keeps them all. The `overrides` and `debug.disable()` workaround can go.
|
|
14
|
+
- **A name that goes with the join**: `<VoltkitProvider metadata={{ name: 'Asha' }}>` and `useRoom().connect({ metadata })`, from
|
|
15
|
+
`@voltkit-rtc/react` 0.1.5.
|
|
16
|
+
- From the client 0.9.17: names kept through reconnects, `client.identity` and `client.role`, `setAudioQuality('hd')` giving
|
|
17
|
+
one answer, and `not-connected` or `unpublished` for a switch your own `close()` or `unpublish()` ended.
|
|
18
|
+
|
|
19
|
+
## 0.1.4
|
|
20
|
+
|
|
21
|
+
Published 2026-11-02. The SDK round of 2026-11-01: the fixes are the client's (0.9.16), which this package
|
|
22
|
+
runs; peer dependencies `@voltkit-rtc/client >=0.9.16 <0.10.0` and `@voltkit-rtc/react ^0.1.4`. The native code is the
|
|
23
|
+
same, but build the app again after upgrading: its version check reads this package's version. This round ran the unit
|
|
24
|
+
tests, the typecheck, the build and the docs' examples (the steps of `make sdk-check-react-native`); not the emulator.
|
|
25
|
+
|
|
26
|
+
- **A person going live during a viewer's connect is received** (C0915-1, Medium-High; D4). On a phone's slow downlink
|
|
27
|
+
this hit 25 of 25 trials behind a proxy: a `newProducer` that arrived before the client's Device was loaded was dropped,
|
|
28
|
+
and the viewer stayed connected without that person's audio or video until the next reconnect. Held and consumed with
|
|
29
|
+
the join's list now, on the first connect and every rejoin.
|
|
30
|
+
- **A quality switch the server refuses keeps the microphone or camera on air** (C0915-2, Medium; D5).
|
|
31
|
+
`setAudioQuality('hd')` in a project lowered to standard rejected `no a=ssrc lines found` (or an m-line order error)
|
|
32
|
+
and the microphone was off air. The client stops the refused sender itself before the refusal is reported, and the
|
|
33
|
+
switches ask the controller first: a kind switched off for the project is refused with `media-disabled`, the device
|
|
34
|
+
untouched. **Behaviour change:** one more round trip per quality switch.
|
|
35
|
+
- **A request over the socket's read limit is refused here** (C0915-3; D6): `bad-params`, nothing sent, the session
|
|
36
|
+
untouched, instead of a dropped socket and a reconnect. The byte count is the client's own, so it needs no `TextEncoder`.
|
|
37
|
+
- **`leave()` while the socket is still opening ends at once with `not-connected`** (R012-3; D7), which the hooks let
|
|
38
|
+
through silently (`connect()` resolves to `undefined`). React Native's `close()` cannot stop a handshake, so the leave
|
|
39
|
+
ended only at the 15 s deadline before; a handshake that finishes after the leave is closed and the app hears nothing.
|
|
40
|
+
|
|
3
41
|
## 0.1.3
|
|
4
42
|
|
|
5
|
-
|
|
43
|
+
Published 2026-11-01. The testers' report on 0.1.2 (`src/__tests__/tester-1031.test.tsx`, RN012-1 to
|
|
6
44
|
RN012-5) and the lead's decisions D1 and D2. Peer dependencies `@voltkit-rtc/client >=0.9.15 <0.10.0` and
|
|
7
45
|
`@voltkit-rtc/react ^0.1.3`: 0.9.15 forgets a `publish()` that rejected, one cut short by the connection included, so
|
|
8
46
|
nothing of it goes on air later behind the app's back, and a closed client refuses every call with `not-connected`. The
|
package/README.md
CHANGED
|
@@ -78,8 +78,8 @@ library, and under Expo's `tsconfig.base` alike.
|
|
|
78
78
|
| React Native | 0.82 or newer, with the New Architecture; tested with 0.88.0 and Hermes |
|
|
79
79
|
| React | 19.1 or newer |
|
|
80
80
|
| react-native-webrtc | 155.0.1 or a later 155.x |
|
|
81
|
-
| `@voltkit-rtc/client` | 0.9.
|
|
82
|
-
| `@voltkit-rtc/react` | 0.1.
|
|
81
|
+
| `@voltkit-rtc/client` | 0.9.17 or a later 0.9.x |
|
|
82
|
+
| `@voltkit-rtc/react` | 0.1.5 or a later 0.1.x |
|
|
83
83
|
| Android | minSdk 24 (Android 7.0), react-native-webrtc's minimum |
|
|
84
84
|
| Expo | SDK 58 or newer, in a development build; not Expo Go |
|
|
85
85
|
| iOS | Preview: see [iOS preview](#ios-preview) |
|
|
@@ -451,6 +451,7 @@ its own.
|
|
|
451
451
|
| `wsUrl` | `string` | the room's WebSocket URL, from your backend with the token |
|
|
452
452
|
| `token` | `string` | a room token your backend minted |
|
|
453
453
|
| `connect` | `boolean` | connect the client when it is idle; default `true`. With `false`, call `useRoom().connect()` yourself |
|
|
454
|
+
| `metadata` | object | your display metadata (a name, an avatar), sent with the join whoever starts it, so everyone hears it on `participantJoined`. It stays through reconnects; later, `client.setMetadata` changes it (0.1.5) |
|
|
454
455
|
| `onConnected` | `(result: JoinResult) => void` | after every successful join: the first, and each automatic reconnect |
|
|
455
456
|
| `onError` | `(error: Error) => void` | every `error` event (warnings included), a failed connect, a token the session refused, a call service that could not start, and missing native code |
|
|
456
457
|
| `onClosed` | `(reason: ClosedReason) => void` | the session ended for good: `left`, `kicked`, `room-closed`, `gave-up` or `replaced` |
|
|
@@ -1337,6 +1338,13 @@ react-native-webrtc's own error when its native code is not in the app. The app
|
|
|
1337
1338
|
was not built again after `npm install`: run `npx react-native run-android`, or
|
|
1338
1339
|
make a new development build. Expo Go cannot load it at all.
|
|
1339
1340
|
|
|
1341
|
+
### `rn-webrtc:*:DEBUG` lines in the log
|
|
1342
|
+
|
|
1343
|
+
react-native-webrtc's own debug logs, which it turns on as it loads. From 0.1.5
|
|
1344
|
+
they are off in release builds, with its warnings and errors left on, and stay
|
|
1345
|
+
on in development builds, where they help. They carry connection and track ids
|
|
1346
|
+
only.
|
|
1347
|
+
|
|
1340
1348
|
### "needs a development build"
|
|
1341
1349
|
|
|
1342
1350
|
The SDK's `media-unavailable` error when native code is missing: `data.reason`
|
|
@@ -1497,8 +1505,8 @@ Bluetooth routing tested in unit tests, not on hardware.** Tested with:
|
|
|
1497
1505
|
| React | 19.3.0 |
|
|
1498
1506
|
| react-native-webrtc | 155.0.1 (WebRTC `org.jitsi:webrtc` 155.0.1) |
|
|
1499
1507
|
| Expo | SDK 58 (`expo` 58.0.19), development build, R8-minified release build |
|
|
1500
|
-
| `@voltkit-rtc/client` | 0.9.15 |
|
|
1501
|
-
| `@voltkit-rtc/react` | 0.1.
|
|
1508
|
+
| `@voltkit-rtc/client` | 0.9.17 (0.1.5: unit tests, the typecheck, the build and the docs' examples; the emulator run is 0.1.3's on 0.9.15) |
|
|
1509
|
+
| `@voltkit-rtc/react` | 0.1.5 |
|
|
1502
1510
|
| Android | the Android emulator (a Pixel 10 Pro AVD, x86_64, API 37.1, Google Play image); earpiece and Bluetooth routing in unit tests, not on hardware |
|
|
1503
1511
|
| iOS | not tested: preview |
|
|
1504
1512
|
|
package/lib/commonjs/globals.js
CHANGED
|
@@ -30,9 +30,28 @@ function loadWebRTC() {
|
|
|
30
30
|
if (!webrtcAvailable()) return null;
|
|
31
31
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
32
32
|
loaded = require('react-native-webrtc');
|
|
33
|
+
quietInRelease();
|
|
33
34
|
return loaded;
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* react-native-webrtc turns its own debug logs on as it loads, for every build: 31 lines for one join, in a shipped app's
|
|
39
|
+
* log. Outside __DEV__ they go off here, right after, with its warnings and errors left on. Its logger is not among its
|
|
40
|
+
* exports; a later version that moved it only leaves the logs on.
|
|
41
|
+
*/
|
|
42
|
+
function quietInRelease() {
|
|
43
|
+
if (__DEV__) return;
|
|
44
|
+
try {
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
46
|
+
const {
|
|
47
|
+
default: Logger
|
|
48
|
+
} = require('react-native-webrtc/lib/commonjs/Logger');
|
|
49
|
+
Logger.enable('rn-webrtc:*:WARN,rn-webrtc:*:ERROR');
|
|
50
|
+
} catch {
|
|
51
|
+
// Noise, never a reason to stop a call.
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
36
55
|
/**
|
|
37
56
|
* Install react-native-webrtc's WebRTC classes as globals (RTCPeerConnection, MediaStream, ...), which mediasoup-client
|
|
38
57
|
* needs. Runs when the package is imported; calling it again does nothing. Returns false, without throwing, where
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","loaded","registered","webrtcAvailable","NativeModules","WebRTCModule","loadWebRTC","registerVoltkitGlobals","webrtc","registerGlobals","webrtcVersion","pkg","version"],"sourceRoot":"../../src","sources":["globals.ts"],"mappings":";;;;;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AAPA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,IAAIC,MAA2B,GAAG,IAAI;AACtC,IAAIC,UAAU,GAAG,KAAK;;AAEtB;AACO,SAASC,eAAeA,CAAA,EAAY;EACzC,OAAQC,0BAAa,CAA6BC,YAAY,IAAI,IAAI;AACxE;;AAEA;AACO,SAASC,UAAUA,CAAA,EAAwB;EAChD,IAAIL,MAAM,EAAE,OAAOA,MAAM;EACzB,IAAI,CAACE,eAAe,CAAC,CAAC,EAAE,OAAO,IAAI;EACnC;EACAF,MAAM,GAAGD,OAAO,CAAC,qBAAqB,CAAiB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","loaded","registered","webrtcAvailable","NativeModules","WebRTCModule","loadWebRTC","quietInRelease","__DEV__","default","Logger","enable","registerVoltkitGlobals","webrtc","registerGlobals","webrtcVersion","pkg","version"],"sourceRoot":"../../src","sources":["globals.ts"],"mappings":";;;;;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AAPA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,IAAIC,MAA2B,GAAG,IAAI;AACtC,IAAIC,UAAU,GAAG,KAAK;;AAEtB;AACO,SAASC,eAAeA,CAAA,EAAY;EACzC,OAAQC,0BAAa,CAA6BC,YAAY,IAAI,IAAI;AACxE;;AAEA;AACO,SAASC,UAAUA,CAAA,EAAwB;EAChD,IAAIL,MAAM,EAAE,OAAOA,MAAM;EACzB,IAAI,CAACE,eAAe,CAAC,CAAC,EAAE,OAAO,IAAI;EACnC;EACAF,MAAM,GAAGD,OAAO,CAAC,qBAAqB,CAAiB;EACvDO,cAAc,CAAC,CAAC;EAChB,OAAON,MAAM;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASM,cAAcA,CAAA,EAAS;EAC9B,IAAIC,OAAO,EAAE;EACb,IAAI;IACF;IACA,MAAM;MAAEC,OAAO,EAAEC;IAAO,CAAC,GAAGV,OAAO,CAAC,yCAAyC,CAAsD;IACnIU,MAAM,CAACC,MAAM,CAAC,oCAAoC,CAAC;EACrD,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,sBAAsBA,CAAA,EAAY;EAChD,IAAIV,UAAU,EAAE,OAAO,IAAI;EAC3B,MAAMW,MAAM,GAAGP,UAAU,CAAC,CAAC;EAC3B,IAAI,CAACO,MAAM,EAAE,OAAO,KAAK;EACzBA,MAAM,CAACC,eAAe,CAAC,CAAC;EACxBZ,UAAU,GAAG,IAAI;EACjB,OAAO,IAAI;AACb;;AAEA;AACO,SAASa,aAAaA,CAAA,EAAkB;EAC7C,IAAI;IACF;IACA,MAAMC,GAAG,GAAGhB,OAAO,CAAC,kCAAkC,CAA0B;IAChF,OAAO,OAAOgB,GAAG,CAACC,OAAO,KAAK,QAAQ,GAAGD,GAAG,CAACC,OAAO,GAAG,IAAI;EAC7D,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
package/lib/commonjs/native.js
CHANGED
|
@@ -21,7 +21,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/** The version of this package: what getDiagnostics() reports, and what the native side was built from. */
|
|
24
|
-
const SDK_VERSION = exports.SDK_VERSION = '0.1.
|
|
24
|
+
const SDK_VERSION = exports.SDK_VERSION = '0.1.5';
|
|
25
25
|
|
|
26
26
|
/** The native module, or null where there is none (iOS, Expo Go, an app not rebuilt). */
|
|
27
27
|
function nativeModule() {
|
|
@@ -60,7 +60,7 @@ function localStream(client) {
|
|
|
60
60
|
return client.local ?? null;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.
|
|
63
|
+
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.4`. */
|
|
64
64
|
function describePlatform() {
|
|
65
65
|
return `ReactNative ${_reactNative.Platform.OS} ${String(_reactNative.Platform.Version)}; react-native-webrtc ${(0, _globals.webrtcVersion)() ?? 'unknown'}; @voltkit-rtc/react-native ${_native.SDK_VERSION}`;
|
|
66
66
|
}
|
package/lib/module/globals.js
CHANGED
|
@@ -22,9 +22,28 @@ export function loadWebRTC() {
|
|
|
22
22
|
if (!webrtcAvailable()) return null;
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
24
24
|
loaded = require('react-native-webrtc');
|
|
25
|
+
quietInRelease();
|
|
25
26
|
return loaded;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
/**
|
|
30
|
+
* react-native-webrtc turns its own debug logs on as it loads, for every build: 31 lines for one join, in a shipped app's
|
|
31
|
+
* log. Outside __DEV__ they go off here, right after, with its warnings and errors left on. Its logger is not among its
|
|
32
|
+
* exports; a later version that moved it only leaves the logs on.
|
|
33
|
+
*/
|
|
34
|
+
function quietInRelease() {
|
|
35
|
+
if (__DEV__) return;
|
|
36
|
+
try {
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
38
|
+
const {
|
|
39
|
+
default: Logger
|
|
40
|
+
} = require('react-native-webrtc/lib/commonjs/Logger');
|
|
41
|
+
Logger.enable('rn-webrtc:*:WARN,rn-webrtc:*:ERROR');
|
|
42
|
+
} catch {
|
|
43
|
+
// Noise, never a reason to stop a call.
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
28
47
|
/**
|
|
29
48
|
* Install react-native-webrtc's WebRTC classes as globals (RTCPeerConnection, MediaStream, ...), which mediasoup-client
|
|
30
49
|
* needs. Runs when the package is imported; calling it again does nothing. Returns false, without throwing, where
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","loaded","registered","webrtcAvailable","WebRTCModule","loadWebRTC","require","registerVoltkitGlobals","webrtc","registerGlobals","webrtcVersion","pkg","version"],"sourceRoot":"../../src","sources":["globals.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,cAAc;AAK5C,IAAIC,MAA2B,GAAG,IAAI;AACtC,IAAIC,UAAU,GAAG,KAAK;;AAEtB;AACA,OAAO,SAASC,eAAeA,CAAA,EAAY;EACzC,OAAQH,aAAa,CAA6BI,YAAY,IAAI,IAAI;AACxE;;AAEA;AACA,OAAO,SAASC,UAAUA,CAAA,EAAwB;EAChD,IAAIJ,MAAM,EAAE,OAAOA,MAAM;EACzB,IAAI,CAACE,eAAe,CAAC,CAAC,EAAE,OAAO,IAAI;EACnC;EACAF,MAAM,GAAGK,OAAO,CAAC,qBAAqB,CAAiB;
|
|
1
|
+
{"version":3,"names":["NativeModules","loaded","registered","webrtcAvailable","WebRTCModule","loadWebRTC","require","quietInRelease","__DEV__","default","Logger","enable","registerVoltkitGlobals","webrtc","registerGlobals","webrtcVersion","pkg","version"],"sourceRoot":"../../src","sources":["globals.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,cAAc;AAK5C,IAAIC,MAA2B,GAAG,IAAI;AACtC,IAAIC,UAAU,GAAG,KAAK;;AAEtB;AACA,OAAO,SAASC,eAAeA,CAAA,EAAY;EACzC,OAAQH,aAAa,CAA6BI,YAAY,IAAI,IAAI;AACxE;;AAEA;AACA,OAAO,SAASC,UAAUA,CAAA,EAAwB;EAChD,IAAIJ,MAAM,EAAE,OAAOA,MAAM;EACzB,IAAI,CAACE,eAAe,CAAC,CAAC,EAAE,OAAO,IAAI;EACnC;EACAF,MAAM,GAAGK,OAAO,CAAC,qBAAqB,CAAiB;EACvDC,cAAc,CAAC,CAAC;EAChB,OAAON,MAAM;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASM,cAAcA,CAAA,EAAS;EAC9B,IAAIC,OAAO,EAAE;EACb,IAAI;IACF;IACA,MAAM;MAAEC,OAAO,EAAEC;IAAO,CAAC,GAAGJ,OAAO,CAAC,yCAAyC,CAAsD;IACnII,MAAM,CAACC,MAAM,CAAC,oCAAoC,CAAC;EACrD,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CAAA,EAAY;EAChD,IAAIV,UAAU,EAAE,OAAO,IAAI;EAC3B,MAAMW,MAAM,GAAGR,UAAU,CAAC,CAAC;EAC3B,IAAI,CAACQ,MAAM,EAAE,OAAO,KAAK;EACzBA,MAAM,CAACC,eAAe,CAAC,CAAC;EACxBZ,UAAU,GAAG,IAAI;EACjB,OAAO,IAAI;AACb;;AAEA;AACA,OAAO,SAASa,aAAaA,CAAA,EAAkB;EAC7C,IAAI;IACF;IACA,MAAMC,GAAG,GAAGV,OAAO,CAAC,kCAAkC,CAA0B;IAChF,OAAO,OAAOU,GAAG,CAACC,OAAO,KAAK,QAAQ,GAAGD,GAAG,CAACC,OAAO,GAAG,IAAI;EAC7D,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
package/lib/module/native.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Platform } from 'react-native';
|
|
|
9
9
|
import NativeVoltkitRtc from "./specs/NativeVoltkitRtc.js";
|
|
10
10
|
import { iosUnsupported, logError, nativeMissing } from "./errors.js";
|
|
11
11
|
/** The version of this package: what getDiagnostics() reports, and what the native side was built from. */
|
|
12
|
-
export const SDK_VERSION = '0.1.
|
|
12
|
+
export const SDK_VERSION = '0.1.5';
|
|
13
13
|
|
|
14
14
|
/** The native module, or null where there is none (iOS, Expo Go, an app not rebuilt). */
|
|
15
15
|
export function nativeModule() {
|
|
@@ -51,7 +51,7 @@ export function localStream(client) {
|
|
|
51
51
|
return client.local ?? null;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.
|
|
54
|
+
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.4`. */
|
|
55
55
|
export function describePlatform() {
|
|
56
56
|
return `ReactNative ${Platform.OS} ${String(Platform.Version)}; react-native-webrtc ${webrtcVersion() ?? 'unknown'}; @voltkit-rtc/react-native ${SDK_VERSION}`;
|
|
57
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/globals.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AAKzC,kEAAkE;AAClE,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,IAAI,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/globals.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AAKzC,kEAAkE;AAClE,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,IAAI,YAAY,GAAG,IAAI,CAOhD;AAkBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAOhD;AAED,wGAAwG;AACxG,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAQ7C"}
|
|
@@ -20,5 +20,5 @@ export type { PermissionKind, PermissionStatus, PermissionStatuses, Permissions
|
|
|
20
20
|
export { SDK_VERSION } from './native';
|
|
21
21
|
export { useVoltkitClient, useRoom, useConnectionState, useParticipants, useRemoteTracks, useNetworkQuality, useWalletLow, useVoltkitEvent, useActiveSpeakers, useAudioLevels, useCpuConstrained, useDevices, useIsSpeaking, useMediaWarnings, usePublishFallback, useStreamFallback, } from '@voltkit-rtc/react';
|
|
22
22
|
export type { RoomState, RemoteTrackFilter, WalletLowState } from '@voltkit-rtc/react';
|
|
23
|
-
export type { AudioDeviceType, AudioQuality, CameraFacing, ChatMessage, ClientEvents, ClientOptions, ClientPlatform, ClosedReason, CodecPreference, ConnectionState, DeviceHandlerName, DeviceKind, ErrorCode, JoinResult, LayerCount, LocalMediaState, MediaDevice, MediaPermissions, NetworkQuality, NetworkQualityLevel, ParticipantInfo, PreflightReport, PublishOptions, RemoteTrack, Role, ScreenMode, ScreenPublishOptions, SendMessageOptions, StreamClient, TokenExpiringNotice, TrackSource, UsageLimitNotice, VideoQuality, WalletLowNotice, } from '@voltkit-rtc/client';
|
|
23
|
+
export type { AudioDeviceType, AudioQuality, CameraFacing, ChatMessage, ClientEvents, ClientOptions, ClientPlatform, ClosedReason, CodecPreference, ConnectOptions, ConnectionState, DeviceHandlerName, DeviceKind, ErrorCode, JoinResult, LayerCount, LocalMediaState, MediaDevice, MediaPermissions, NetworkQuality, NetworkQualityLevel, ParticipantInfo, PreflightReport, PublishOptions, RemoteTrack, Role, ScreenMode, ScreenPublishOptions, SendMessageOptions, StreamClient, TokenExpiringNotice, TrackSource, UsageLimitNotice, VideoQuality, WalletLowNotice, } from '@voltkit-rtc/client';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACzE,YAAY,EAAE,iBAAiB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AAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,cAAc,EACd,WAAW,EACX,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,GAChB,MAAM,qBAAqB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { EventSubscription } from 'react-native';
|
|
|
2
2
|
import { type AudioDevice, type Constants, type Spec } from './specs/NativeVoltkitRtc';
|
|
3
3
|
import type { MediaDevice } from '@voltkit-rtc/client';
|
|
4
4
|
/** The version of this package: what getDiagnostics() reports, and what the native side was built from. */
|
|
5
|
-
export declare const SDK_VERSION = "0.1.
|
|
5
|
+
export declare const SDK_VERSION = "0.1.5";
|
|
6
6
|
/** The native module, or null where there is none (iOS, Expo Go, an app not rebuilt). */
|
|
7
7
|
export declare function nativeModule(): Spec | null;
|
|
8
8
|
/** The module's constants, read once: the audio mode, screen sharing, the call service as the manifest declares them. */
|
|
@@ -72,7 +72,7 @@ export interface MediaStreamLike {
|
|
|
72
72
|
export declare function localStream(client: {
|
|
73
73
|
readonly local: unknown;
|
|
74
74
|
}): MediaStreamLike | null;
|
|
75
|
-
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.
|
|
75
|
+
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.4`. */
|
|
76
76
|
export declare function describePlatform(): string;
|
|
77
77
|
/**
|
|
78
78
|
* What the client reads to pick its defaults: a phone or tablet, so two simulcast layers and the H.264 decision
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/globals.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AAKzC,kEAAkE;AAClE,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,IAAI,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/globals.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AAKzC,kEAAkE;AAClE,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,IAAI,YAAY,GAAG,IAAI,CAOhD;AAkBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAOhD;AAED,wGAAwG;AACxG,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAQ7C"}
|
|
@@ -20,5 +20,5 @@ export type { PermissionKind, PermissionStatus, PermissionStatuses, Permissions
|
|
|
20
20
|
export { SDK_VERSION } from './native.js';
|
|
21
21
|
export { useVoltkitClient, useRoom, useConnectionState, useParticipants, useRemoteTracks, useNetworkQuality, useWalletLow, useVoltkitEvent, useActiveSpeakers, useAudioLevels, useCpuConstrained, useDevices, useIsSpeaking, useMediaWarnings, usePublishFallback, useStreamFallback, } from '@voltkit-rtc/react';
|
|
22
22
|
export type { RoomState, RemoteTrackFilter, WalletLowState } from '@voltkit-rtc/react';
|
|
23
|
-
export type { AudioDeviceType, AudioQuality, CameraFacing, ChatMessage, ClientEvents, ClientOptions, ClientPlatform, ClosedReason, CodecPreference, ConnectionState, DeviceHandlerName, DeviceKind, ErrorCode, JoinResult, LayerCount, LocalMediaState, MediaDevice, MediaPermissions, NetworkQuality, NetworkQualityLevel, ParticipantInfo, PreflightReport, PublishOptions, RemoteTrack, Role, ScreenMode, ScreenPublishOptions, SendMessageOptions, StreamClient, TokenExpiringNotice, TrackSource, UsageLimitNotice, VideoQuality, WalletLowNotice, } from '@voltkit-rtc/client';
|
|
23
|
+
export type { AudioDeviceType, AudioQuality, CameraFacing, ChatMessage, ClientEvents, ClientOptions, ClientPlatform, ClosedReason, CodecPreference, ConnectOptions, ConnectionState, DeviceHandlerName, DeviceKind, ErrorCode, JoinResult, LayerCount, LocalMediaState, MediaDevice, MediaPermissions, NetworkQuality, NetworkQualityLevel, ParticipantInfo, PreflightReport, PublishOptions, RemoteTrack, Role, ScreenMode, ScreenPublishOptions, SendMessageOptions, StreamClient, TokenExpiringNotice, TrackSource, UsageLimitNotice, VideoQuality, WalletLowNotice, } from '@voltkit-rtc/client';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAW,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,oBAAiB,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAiB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAa,CAAC;AACxC,YAAY,EAAE,2BAA2B,EAAE,MAAM,gBAAa,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAY,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,sBAAmB,CAAC;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,eAAY,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAY,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAkB,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAe,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAA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E,kBAAkB,EAAE,WAAW,EAAE,MAAM,kBAAe,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,MAAM,aAAU,CAAC;AAGvC,OAAO,EACL,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGvF,YAAY,EACV,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,cAAc,EACd,WAAW,EACX,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,GAChB,MAAM,qBAAqB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { EventSubscription } from 'react-native';
|
|
|
2
2
|
import { type AudioDevice, type Constants, type Spec } from './specs/NativeVoltkitRtc.js';
|
|
3
3
|
import type { MediaDevice } from '@voltkit-rtc/client';
|
|
4
4
|
/** The version of this package: what getDiagnostics() reports, and what the native side was built from. */
|
|
5
|
-
export declare const SDK_VERSION = "0.1.
|
|
5
|
+
export declare const SDK_VERSION = "0.1.5";
|
|
6
6
|
/** The native module, or null where there is none (iOS, Expo Go, an app not rebuilt). */
|
|
7
7
|
export declare function nativeModule(): Spec | null;
|
|
8
8
|
/** The module's constants, read once: the audio mode, screen sharing, the call service as the manifest declares them. */
|
|
@@ -72,7 +72,7 @@ export interface MediaStreamLike {
|
|
|
72
72
|
export declare function localStream(client: {
|
|
73
73
|
readonly local: unknown;
|
|
74
74
|
}): MediaStreamLike | null;
|
|
75
|
-
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.
|
|
75
|
+
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.4`. */
|
|
76
76
|
export declare function describePlatform(): string;
|
|
77
77
|
/**
|
|
78
78
|
* What the client reads to pick its defaults: a phone or tablet, so two simulcast layers and the H.264 decision
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltkit-rtc/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "React Native SDK for VoltKit RTC: calls, audio rooms and live video on Android (iOS in preview), with the hooks of @voltkit-rtc/react, background calls, audio routing and an Expo config plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltkit",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
77
77
|
"test": "jest",
|
|
78
78
|
"test:plugin": "jest -c plugin/jest.config.js",
|
|
79
|
-
"prepublishOnly": "npm run build && npm test"
|
|
79
|
+
"prepublishOnly": "bash ../scripts/test/docs-sdk-readmes.sh && npm run build && npm test"
|
|
80
80
|
},
|
|
81
81
|
"codegenConfig": {
|
|
82
82
|
"name": "VoltkitRtcSpec",
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@voltkit-rtc/client": ">=0.9.
|
|
115
|
-
"@voltkit-rtc/react": "^0.1.
|
|
114
|
+
"@voltkit-rtc/client": ">=0.9.17 <0.10.0",
|
|
115
|
+
"@voltkit-rtc/react": "^0.1.5",
|
|
116
116
|
"expo": ">=58",
|
|
117
117
|
"react": ">=19.1.0",
|
|
118
118
|
"react-native": ">=0.82.0",
|
package/src/globals.ts
CHANGED
|
@@ -24,9 +24,26 @@ export function loadWebRTC(): WebRTCModule | null {
|
|
|
24
24
|
if (!webrtcAvailable()) return null;
|
|
25
25
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
26
26
|
loaded = require('react-native-webrtc') as WebRTCModule;
|
|
27
|
+
quietInRelease();
|
|
27
28
|
return loaded;
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
/**
|
|
32
|
+
* react-native-webrtc turns its own debug logs on as it loads, for every build: 31 lines for one join, in a shipped app's
|
|
33
|
+
* log. Outside __DEV__ they go off here, right after, with its warnings and errors left on. Its logger is not among its
|
|
34
|
+
* exports; a later version that moved it only leaves the logs on.
|
|
35
|
+
*/
|
|
36
|
+
function quietInRelease(): void {
|
|
37
|
+
if (__DEV__) return;
|
|
38
|
+
try {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
40
|
+
const { default: Logger } = require('react-native-webrtc/lib/commonjs/Logger') as { default: { enable(namespaces: string): void } };
|
|
41
|
+
Logger.enable('rn-webrtc:*:WARN,rn-webrtc:*:ERROR');
|
|
42
|
+
} catch {
|
|
43
|
+
// Noise, never a reason to stop a call.
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
30
47
|
/**
|
|
31
48
|
* Install react-native-webrtc's WebRTC classes as globals (RTCPeerConnection, MediaStream, ...), which mediasoup-client
|
|
32
49
|
* needs. Runs when the package is imported; calling it again does nothing. Returns false, without throwing, where
|
package/src/index.ts
CHANGED
package/src/native.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { iosUnsupported, logError, nativeMissing } from './errors';
|
|
|
10
10
|
import type { AudioDeviceType, DeviceKind, MediaDevice } from '@voltkit-rtc/client';
|
|
11
11
|
|
|
12
12
|
/** The version of this package: what getDiagnostics() reports, and what the native side was built from. */
|
|
13
|
-
export const SDK_VERSION = '0.1.
|
|
13
|
+
export const SDK_VERSION = '0.1.5';
|
|
14
14
|
|
|
15
15
|
/** The native module, or null where there is none (iOS, Expo Go, an app not rebuilt). */
|
|
16
16
|
export function nativeModule(): Spec | null {
|
package/src/platform/common.ts
CHANGED
|
@@ -89,7 +89,7 @@ export function localStream(client: { readonly local: unknown }): MediaStreamLik
|
|
|
89
89
|
return (client.local as MediaStreamLike | null | undefined) ?? null;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.
|
|
92
|
+
/** getDiagnostics().userAgent: `ReactNative android 37; react-native-webrtc 155.0.1; @voltkit-rtc/react-native 0.1.4`. */
|
|
93
93
|
export function describePlatform(): string {
|
|
94
94
|
return `ReactNative ${Platform.OS} ${String(Platform.Version)}; react-native-webrtc ${webrtcVersion() ?? 'unknown'}; @voltkit-rtc/react-native ${SDK_VERSION}`;
|
|
95
95
|
}
|