I am using livekit android sdk, can I connect to t...
# ask-ai
w
I am using livekit android sdk, can I connect to the toom with agent before requesting the android.permission.RECORD_AUDIO?
t
Thanks for reaching out, Кирилл. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, you can connect to a LiveKit room using the Android SDK without requesting the
android.permission.RECORD_AUDIO
permission. However, there are some limitations: • You can connect to the room without enabling the microphone or audio tracks. For example, you can skip enabling the microphone when connecting: • If you attempt to create an audio track or enable the microphone without the permission, a
SecurityException
will be thrown. • You can also explicitly set audio to
false
in the
ConnectOptions
when connecting: This allows you to connect to the room without audio capabilities. Let me know if you need further assistance! Sources: createAudioTrack | ConnectOptions