Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ci/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PODS:
- hermes-engine (0.82.0):
- hermes-engine/Pre-built (= 0.82.0)
- hermes-engine/Pre-built (0.82.0)
- livekit-react-native (2.9.8):
- livekit-react-native (2.10.0):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -37,7 +37,7 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- livekit-react-native-webrtc (144.0.0):
- livekit-react-native-webrtc (144.1.0-beta.0):
- React-Core
- WebRTC-SDK (= 144.7559.01)
- RCT-Folly (2024.11.18.00):
Expand Down Expand Up @@ -2692,8 +2692,8 @@ SPEC CHECKSUMS:
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
hermes-engine: 8642d8f14a548ab718ec112e9bebdfdd154138b5
livekit-react-native: 16923c9c9cdf21c68cbac52f9a5222c9f05c2f06
livekit-react-native-webrtc: a9a45c67543105a40192b144809513e5ab266d0a
livekit-react-native: 0d36ebbf20e663c7d1abb7079e1cf1237f3bcb02
livekit-react-native-webrtc: 2023c6774526d44024e77f98e37d233f8df1a326
RCT-Folly: 846fda9475e61ec7bcbf8a3fe81edfcaeb090669
RCTDeprecation: f17e2ebc07876ca9ab8eb6e4b0a4e4647497ae3a
RCTRequired: e2c574c1b45231f7efb0834936bd609d75072b63
Expand Down
2 changes: 1 addition & 1 deletion ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@livekit/react-native": "*",
"@livekit/react-native-webrtc": "^144.0.0",
"@livekit/react-native-webrtc": "^144.1.0-beta.0",
"@react-native/new-app-screen": "0.82.1",
"livekit-client": "^2.15.8",
"react": "19.1.1",
Expand Down
10 changes: 5 additions & 5 deletions ci/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1953,15 +1953,15 @@ __metadata:
languageName: node
linkType: hard

"@livekit/react-native-webrtc@npm:^144.0.0":
version: 144.0.0
resolution: "@livekit/react-native-webrtc@npm:144.0.0"
"@livekit/react-native-webrtc@npm:^144.1.0-beta.0":
version: 144.1.0-beta.0
resolution: "@livekit/react-native-webrtc@npm:144.1.0-beta.0"
dependencies:
base64-js: "npm:1.5.1"
debug: "npm:4.3.4"
peerDependencies:
react-native: ">=0.60.0"
checksum: 10/d97454e8bcb5ab0ae98e8a9d134f8486276b12bdf993052b5b01ac3e8da375e63bb66c84061201bd4499266afbe383a9a065c85c19b0734d659bc21fcf156508
checksum: 10/d03b01c97bd6bad3e27908abbc2889e0c7e47af953e1f1d7824d8bc8babf4a2b91f59d719c9f5603329aa9fc1f8fcdac9f2f431b5e32ab88095168317f797b41
languageName: node
linkType: hard

Expand Down Expand Up @@ -3587,7 +3587,7 @@ __metadata:
"@babel/preset-env": "npm:^7.25.3"
"@babel/runtime": "npm:^7.25.0"
"@livekit/react-native": "npm:*"
"@livekit/react-native-webrtc": "npm:^144.0.0"
"@livekit/react-native-webrtc": "npm:^144.1.0-beta.0"
"@react-native-community/cli": "npm:20.0.0"
"@react-native-community/cli-platform-android": "npm:20.0.0"
"@react-native-community/cli-platform-ios": "npm:20.0.0"
Expand Down
8 changes: 7 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { AppRegistry } from 'react-native';
import App from './src/App';
import { name as appName } from './app.json';
import { registerGlobals, setLogLevel } from '@livekit/react-native';
import {
registerGlobals,
setLogLevel,
setupIOSAudioManagement,
} from '@livekit/react-native';
import { LogLevel } from 'livekit-client';
import { setupErrorLogHandler } from './src/utils/ErrorLogHandler';
import { setupCallService } from './src/callservice/CallService';
Expand All @@ -16,3 +20,5 @@ setupCallService();
// Required React-Native setup for app
registerGlobals();
AppRegistry.registerComponent(appName, () => App);

setupIOSAudioManagement();
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PODS:
- hermes-engine (0.82.0):
- hermes-engine/Pre-built (= 0.82.0)
- hermes-engine/Pre-built (0.82.0)
- livekit-react-native (2.9.8):
- livekit-react-native (2.10.0):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -37,7 +37,7 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- livekit-react-native-webrtc (144.0.0):
- livekit-react-native-webrtc (144.1.0-beta.0):
- React-Core
- WebRTC-SDK (= 144.7559.01)
- RCT-Folly (2024.11.18.00):
Expand Down Expand Up @@ -2790,8 +2790,8 @@ SPEC CHECKSUMS:
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
hermes-engine: 8642d8f14a548ab718ec112e9bebdfdd154138b5
livekit-react-native: 16923c9c9cdf21c68cbac52f9a5222c9f05c2f06
livekit-react-native-webrtc: a9a45c67543105a40192b144809513e5ab266d0a
livekit-react-native: 0d36ebbf20e663c7d1abb7079e1cf1237f3bcb02
livekit-react-native-webrtc: 2023c6774526d44024e77f98e37d233f8df1a326
RCT-Folly: 59ec0ac1f2f39672a0c6e6cecdd39383b764646f
RCTDeprecation: f17e2ebc07876ca9ab8eb6e4b0a4e4647497ae3a
RCTRequired: e2c574c1b45231f7efb0834936bd609d75072b63
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"postinstall": "patch-package"
},
"dependencies": {
"@livekit/react-native-webrtc": "^144.0.0",
"@livekit/react-native-webrtc": "^144.1.0-beta.0",
"@react-native-async-storage/async-storage": "^1.17.10",
"@react-navigation/native": "^7.1.18",
"@react-navigation/native-stack": "^7.3.27",
Expand Down
3 changes: 0 additions & 3 deletions example/src/RoomPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
useTracks,
type TrackReferenceOrPlaceholder,
AndroidAudioTypePresets,
useIOSAudioManagement,
useRNE2EEManager,
} from '@livekit/react-native';
import { Platform } from 'react-native';
Expand Down Expand Up @@ -106,8 +105,6 @@ const RoomView = ({ navigation, e2ee }: RoomViewProps) => {
return () => {};
}, [room, e2ee]);

useIOSAudioManagement(room, true);

// Setup room listeners
useEffect(() => {
room.registerTextStreamHandler('lk.chat', async (reader, participant) => {
Expand Down
4 changes: 4 additions & 0 deletions ios/LiveKitReactNativeModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public class LivekitReactNativeModule: RCTEventEmitter {
super.init()
let config = RTCAudioSessionConfiguration()
config.category = AVAudioSession.Category.playAndRecord.rawValue
#if swift(>=6.2)
config.categoryOptions = [.allowAirPlay, .allowBluetoothHFP, .allowBluetoothA2DP, .defaultToSpeaker]
#else
config.categoryOptions = [.allowAirPlay, .allowBluetooth, .allowBluetoothA2DP, .defaultToSpeaker]
#endif
config.mode = AVAudioSession.Mode.videoChat.rawValue

RTCAudioSessionConfiguration.setWebRTC(config)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.35.0",
"@livekit/changesets-changelog-github": "^0.0.4",
"@livekit/react-native-webrtc": "^144.0.0",
"@livekit/react-native-webrtc": "^144.1.0-beta.0",
"@react-native/babel-preset": "0.83.0",
"@react-native/eslint-config": "0.83.0",
"@release-it/conventional-changelog": "10.0.1",
Expand All @@ -94,7 +94,7 @@
"typescript": "^5.9.2"
},
"peerDependencies": {
"@livekit/react-native-webrtc": "^144.0.0",
"@livekit/react-native-webrtc": "^144.1.0-beta.0",
"livekit-client": "^2.15.8",
"react": "*",
"react-native": "*"
Expand Down
Loading
Loading