Friday, October 26, 2018

Enable your webcam in android emulator using linux terminal


While using linux,webcam do not activate automatically as a camera in your android emulator. It will give you a random block image while running front camera and back camera. So.. You can avtivate it by using this command.

First go to your android emulator directory, this is mine

cd /android-sdk/tools/

run your emulator using this code

./emulator -camera-front webcam0 -avd AVDNAME

-camera-front-webcam0 = front camera using webcam0
-camera-back-webcam0 = back camera using webcam0

you can change webcam0 to your webcam device id

Done, yo can use your webcam in android emulator

0 comments:

Post a Comment