Download and install the DroidCam app on your broken Android phone from the Google Play Store.
Connect your phone to your PC using a USB cable.
On your phone, launch the DroidCam app and select "USB" as the connection method.
On your PC, download and install the DroidCam client software from the DroidCam website.
Launch the DroidCam client software on your PC and enter the "Device IP" and "DroidCam Port" values displayed on your phone into the corresponding fields in the client software.
Click the "Connect" button in the DroidCam client software to establish a connection with your phone's camera.
In your preferred video conferencing or streaming application, select "DroidCam" as the video source.