This message was deleted.
# helpdesk
s
This message was deleted.
l
@eager-raincoat-52616 BTW it's working if I use NoAudioHandler instead of AudioSwitchHandler
d
can you share a code snippet of how you are calling these APIs as well?
l
@dry-elephant-14928 You mean how I create a room ? Now I it looks like
Copy code
LiveKit.create(
    context,
    options = RoomOptions(
        adaptiveStream = false,
        dynacast = false
    ),
    overrides = LiveKitOverrides(
        audioHandler = NoAudioHandler() //AudioSwitchHandler(context)
    )
)
If I put AudioSwitchHandler or don't provide overrides it does not work. If I'm not wrong you sample is also using AudioSwitchHandler
@dry-elephant-14928 @eager-raincoat-52616 Do you know what can be a problem. As I see you are using Twilio's AudioSwitcher inside. Can it cause this issues ?
e
hmm, audio switch should only handle the audio output side, not the input side. Have you tried creating your own JavaAudioDeviceModule and testing out the
setPreferredInputDevice
method? there’s a couple AudioDeviceInfo types that might fit your needs like
TYPE_USB_DEVICE
or
TYPE_USB_ACCESSORY
l
@eager-raincoat-52616 No I did not. I have to wait it get this device to make further testing and investigating. Found that also another Android TV with mic and camera livekit made to reboot ) Did not test NoAudioHandler there yet to see if after this it will be working Also h264 does not want to work or it's working sometimes, but with green artifacts.
d
@loud-jewelry-13301 which device are you seeing green artifacts? It's likely a hardware encoder issue. If you have the device model, please let us know, we can look at how to bypass hw encoding on devices like that
l
@dry-elephant-14928 I’ll ask to provide me full details. But most likely this board is used https://chinese.alibaba.com/product-detail/rockchip-RK3568-android-11-board-motherboard-1600817887372.html With android 11 and camera over Mini connection Currently to isolate it I just filter out h264 codec from supported list