Android webcam enable in emulator

前端 未结 2 693
醉酒成梦
醉酒成梦 2020-12-30 05:32

Hai I am new to the Android. I am using Android4 sdk. I can\'t enable webcam in Android emulator. Can anyone tell how enable it. Thanks.

2条回答
  •  粉色の甜心
    2020-12-30 06:01

    Use emulator help to explore the available options

    $ emulator -help 2>&1 | grep cam
        -camera-back             set emulation mode for a camera facing back
        -camera-front            set emulation mode for a camera facing front
        -webcam-list                   lists web cameras available for emulation
    

    and for example, use -webcam-list to list the recognized cameras

    $ emulator -webcam-list @4.1
    List of web cameras connected to the computer:
     Camera 'webcam0' is connected to device '/dev/video0' on channel 0 using pixel format 'YUYV'
    

    to see the emulation options for cameras

    $ emulator -camera-front help @4.1
    emulator: ERROR: Invalid value for -camera-front  parameter: help
    Valid values are: 'emulated', 'webcam', or 'none'
    

提交回复
热议问题