Open Camera is an Open Source Camera app for Android phones and tablets.
Click the Google Play link above to download from there - or if you'd rather download the APK directly, click the "Download" button above.
You won't need to worry about having a front-facing camera on your device, since this method will employ the use of the rear camera.
Though, if you'd like, you can use the front camera if the back one isn't functioning properly (or if you enjoy lower-resolution video? Using your Android device as a Webcam will do some serious draining of your battery because the screen will remain on the entire time.
After you're finished, scroll to the bottom and tap on Start Server.
Tip: It is recommended that you set a username and password.
Step 2: Head to the IP address that appears at the bottom of the screen on your Android device in Chrome or Firefox.If not, go back and try another one of the link options.