How to change audio input device and video input device using lib jitsi meet?

Hi,

I can see how to change the audio output device, but not the input devices.

Anyone can guide me? I tried to look at the Jitsi Meet web client code, but that part seems to be using some java? I did not fully understand how it works.