Android device as webcam

Recently thanks to this era, I have helped a friend to make a webcamera out of devices he owned at that time out of necessity. Building on the previous post we used genymotion project called scrcpy to stream the screen of the device over ADB (even possible to do so over WiFi,but the quality and stability questionable). We needed the application installed , captured the screen of the device as Window in OBS and streaming as virtualWebcam with obs-V4l2sink plugin,which baked in since 26.0.1 (as far as I am aware). We had to find a camera app which has a capability to hide HUD which was the Open Camera, then we were ready to roll. Some might find this helpful.