LiveKit relies on the `RECORD_AUDIO` and `CAMERA` permissions to use the microphone and camera.
These permission must be requested at runtime. Reference the [sample app](https://github.com/livekit/client-sdk-android/blob/4e76e36e0d9f895c718bd41809ab5ff6c57aabd4/sample-app-compose/src/main/java/io/livekit/android/composesample/MainActivity.kt#L134) for an example.
These permission must be requested at runtime. Reference
the [sample app](https://github.com/livekit/client-sdk-android/blob/4e76e36e0d9f895c718bd41809ab5ff6c57aabd4/sample-app-compose/src/main/java/io/livekit/android/composesample/MainActivity.kt#L134)
for an example.
### Publishing camera and microphone
...
...
@@ -174,22 +176,27 @@ for the full implementation.
### Audio modes
WebRTC utilizes an audio module to interface with the device's audio input and output. By default, the audio module is configured for two-way communications.
By default, the audio is configured for two-way communications.
If you are building a livestreaming or music app, you can make the following tweaks to improve playback quality:
If you are building a livestreaming or media playback focus app, you can use the preset
`MediaAudioType` when creating the `Room` object for better audio quality.