I think it might be possible to install a virtual camera driver on an Android device, which would let you use the Android phone as the main camera for other apps or devices.
Basically, this would mean setting up a virtual camera on the Android that can send video feed to other software, making it appear as if the phone is a regular camera connected to a computer or other device. I believe I’ve seen this kind of setup before, so you should plan to do some searching to find out more about how it works and if there are any apps or tools that can help you with this. Once you find the relevant information, you can update Hack Forums with what you've learnt and how to proceed.