Windows - For windows, the driver comes as an easy installer.
Linux - For Linux, it comes as a script which you need to run in a terminal as root.
Creating and streaming live content might sound like a challenge, but setting up a live-stream within Facebook’s mobile app is a fairly straightforward process.
But doing this requires extra work because android can communicate with PC via USB only in debugging mode by using adb.
Also, for USB mode, we need another app called Droid Cam.
Here's my Google hangout with video from my android phone connected via USB. Just connect your phone via USB in debugging mode to your computer and start the driver script.
It will detect and use adb to initiate a connection using USB automatically.
It will try to download and install additional files if your linux doesn't already have them.
You need to run this script every time you want to use your android as webcam. Now open Skype, Google hangout or any other video call application and for the video section, choose the webcam driver you just installed and start it.
This is also where you can adjust your live-stream’s privacy settings as you can choose who can view your video.
You can even choose the “Only Me” option if you want to test a recording a live- stream and don’t want anyone to watch just yet.
Before running, change the value of the variable " to the ip address from IP Webcam in the script.
Make sure the computer is connected to the Internet when you run the script the first time.
Here's a Google hangout with my android as webcam in Linux.