This message was deleted.
# helpdesk
s
This message was deleted.
d
Hi, if you just want to get local preview you dont need to use sdk just simply use js web apis
s
Hi thanks for the quick reply. What if I want to switch camera/audio device before connecting? can I do this with the component-react?
d
I didnt use react component till now but in js sdk you can do that so you should be able to do that in react component too and if you couldnt do that , again you can do that with js native functions too :)
s
Ah I see, thank you, I will play around with the libs 🙂
m
s
Thanks @magnificent-art-43333, any chance
usePreviewDevice
would be exposed? I would like to do my own custom UI 🙂
m
wdyt @polite-kilobyte-67570 @eager-zoo-16408 ?
e
Hi @strong-kite-90563, it looks like this was an oversight on our part. The function is marked
@public
, but I guess we forgot to expose it. As a temporary fix, you can copy the function. We will add it to the public API in a next release.
s
thank you
p
just to understand your usecase better (and potentially improve how the components work today), why wouldn’t you want to use the
StartAudio
button component directly?
s
Hi @polite-kilobyte-67570, I want to make the startAudio hidden in the mute button, so initially after connecting, the audio icon will be muted, and the user unmutes (which sets volume to 100 and handles any startAudio related stuff)
p
ah, but that way the user might not be able to hear everyone else until they unmute themselves, would this be intended?
s
yes 🙂
👌 1
p
s
thank you