You can use any Android phone as a webcam for your Ubuntu PC by using DroidCam.
mpv IP/video
Pero no podés transmitir la cámara a través de internet porque de esa forma es muy lento.
sudo apt install adb
Follow the instructions to install the DroidCam Linux client.
On your android phone, enable USB debugging (you need to enable developer mode to do this).
Find the drivers for your device:
Plug the device back into computer over USB. If you get a dialog asking Allow USB Debugging, you need to tap OK.
Open DroidCam and select the USB option. On the phone you may get a dialog asking Allow USB Debugging, you need to tap OK. Sometimes you need to open USB Options from the notification area on the device and pick PTP mode for that to show up.
For more information on how to set up DroidCam, click here.
To use your android phone as a microphone, check out WO Mic.
To install the Linux client see this.
You will also need to download the WO Mic app from the PlayStore.
Theoretically you can use both WO Mic and DroidCam in conjunction to turn your Android device into a webcam with a microphone.