Switch webcam using external api



is possible to switch webcam using external api ?
someone have think about this ?
i was looking the code, and i was thinking if i have n webcam where is the best place to implement a function on external api to use the next webcam on the list ?

Something like toggleVideoMuted on app.bundel.js but for switching webcam .

I need this option because sometimes jitsi don’t let me change the webcam from the dropdown menu on the popup, if i don’t mute the video.

Someone can help me ?

Thank you