How to get microphone/desktop audio, camera, screen capture in wasm

Hi,

If I want to implement Discord like app in Rust via WASM. How can I get certain inputs like: microphone, desktop audio, screen capture, camera capture etc.

I assume you have to call the WebRTC and Media Capture JS APIs from your WASM app.