You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,12 +159,13 @@ Additional documentation for the LiveKit SDK can be found at https://docs.liveki
159
159
160
160
## Audio sessions
161
161
162
-
As seen in the above example, we've introduced a new class `AudioSession` that helps
162
+
As seen in the above example, we've introduced a class `AudioSession` that helps
163
163
to manage the audio session on native platforms. This class wraps either [AudioManager](https://developer.android.com/reference/android/media/AudioManager) on Android, or [AVAudioSession](https://developer.apple.com/documentation/avfaudio/avaudiosession) on iOS.
164
164
165
165
You can customize the configuration of the audio session with `configureAudio`.
166
166
167
-
### Media playback
167
+
### Android
168
+
#### Media playback
168
169
169
170
By default, the audio session is set up for bidirectional communication. In this mode, the audio framework exhibits the following behaviors:
170
171
@@ -174,8 +175,6 @@ By default, the audio session is set up for bidirectional communication. In this
174
175
175
176
If you're leveraging LiveKit primarily for media playback, you have the option to reconfigure the audio session to better suit media playback. Here's how:
176
177
177
-
Note: iOS audio session customization is in development, and will be documented here when released.
178
-
179
178
```js
180
179
useEffect(() => {
181
180
let connect =async () => {
@@ -197,7 +196,7 @@ useEffect(() => {
197
196
}, [url, token, room]);
198
197
```
199
198
200
-
### Customizing audio session
199
+
#### Customizing audio session
201
200
202
201
Instead of using our presets, you can further customize the audio session to suit your specific needs.
For iOS, the most appropriate audio configuration may change over time when local/remote
225
+
audio tracks publish and unpublish from the room. To adapt to this, the [`useIOSAudioManagement`](https://htmlpreview.github.io/?https://raw.githubusercontent.com/livekit/client-sdk-react-native/main/docs/functions/useIOSAudioManagement.html)
226
+
hook is advised over just configuring the audio session once for the entire audio session.
227
+
223
228
## Screenshare
224
229
225
230
Enabling screenshare requires extra installation steps:
0 commit comments