We don't even have apps to turn an Android/iOS device into a proper native webcam using UVC over USB2.0 & all attempts at RTSP/other sttreaming protocols just feel hacky & laggy.
afaik newer device kernels in android implements f_uvc function for it's usb gadget interface but i'm not sure you can use this without root. so, apps can't create this functionality without root.
also i'm not sure it's works even apps can get root. i didn't tried yet because my phone not support f_uvc and released kernel sources sucks.
src: https://android.googlesource.com/kernel/msm/+/android-5.0.2_...
Yeah it does. You send it to a v4l2 loopback (scrcpy --v4l2-sink) and then it shows up in stuff like Firefox or chrome as a webcam.