user2736594
user2736594

Reputation: 21

Live streaming from webcam to Android Device

Would it be possible to attain video from a webcam, and display it on an android device? Say, the webcam is displayed on a computer, and the android device streams the live video feed from the computer to the Android Device?

Can someone guide me on how do I do this?

Upvotes: 2

Views: 12193

Answers (2)

Fabio Panico
Fabio Panico

Reputation: 1

I've done this couple years ago using motion software (on the linux computer) and tinyCam on the android smartphone. Motion does require a few configurations, but it very simple and straightforward, although via text. You will also need to open and forward ports on your router.

Upvotes: 0

An SO User
An SO User

Reputation: 24998

Yes, it can.

You will have to code your own simple server which captures the raw bytes from the webcam and turns them into Bitmap.
The server will then listen for phones to connect on a specific port (greater than 1024) and then send the Bitmaps to them.

On the phone, you will have to make an app that connects to that port, gets the data, decodes it and then displays it on the screen.

Basically, you are sending a lot of Bitmap over the wire and at a very fast rate.

Or, you can look into YAWCam, or android-eye for video streaming. The choice is yours.

Upvotes: 1

Related Questions