@poolse/react-native 2.10.1 → 2.12.0
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/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -5191,6 +5191,7 @@ function CallScreen({
|
|
|
5191
5191
|
livekit,
|
|
5192
5192
|
livekitReactNative,
|
|
5193
5193
|
onStatusChange,
|
|
5194
|
+
onTransportChange,
|
|
5194
5195
|
onVideoChange,
|
|
5195
5196
|
nativeIncomingUi
|
|
5196
5197
|
}) {
|
|
@@ -5225,6 +5226,10 @@ function CallScreen({
|
|
|
5225
5226
|
react.useEffect(() => {
|
|
5226
5227
|
onStatusChange?.(status);
|
|
5227
5228
|
}, [status, onStatusChange]);
|
|
5229
|
+
const transport = status !== "connected" ? null : usingSfu ? "sfu" : "mesh";
|
|
5230
|
+
react.useEffect(() => {
|
|
5231
|
+
onTransportChange?.(transport);
|
|
5232
|
+
}, [transport, onTransportChange]);
|
|
5228
5233
|
const videoOn = usingSfu && sfu.cameraEnabled;
|
|
5229
5234
|
react.useEffect(() => {
|
|
5230
5235
|
onVideoChange?.(videoOn);
|