Camera on Android Eclipse emulator:

后端 未结 4 467
别那么骄傲
别那么骄傲 2020-12-03 12:27

I don\'t have an embedded camera in the lid of my notebook. I\'d be hooking up through an external USB camera.

The emulator runtime can pick this up right? I\'ll g

4条回答
  •  无人及你
    2020-12-03 13:05

    In the current release of the emulator (Ice Cream Sandwich, API14;Linux), web camera support is available. Google's documentation and most answers available on the web do not yet reflect this. The emulator itself does:

    emulator -help
    ...
    -fake-camera       set fake camera emulation mode
    -webcam name=[,dir=<direction>] setup web camera emulation
    ...
    emulator -help-all
    

    and further:

    help for option -fake_camera

    Use -fake-camera to control fake camera emulation. Valid values for are:

    off   -> disable fake camera emulation
    back  -> fake camera is facing back
    front -> fake camera is facing front
    

    help for option -webcam

    • -webcam off to disable web camera emulation.
    • -webcam list to list web cameras available for emulation.
    • -webcam name=[,dir=] to setup parameters for web camera emulation.

      • platform-independent name identifying emulated camera device.
      • defines direction the camera is facing. Valid values are:

        • front -> emulate camera as facing front
        • back -> emulate camera as facing back

          Default direction value for emulated web camera is 'front'

提交回复
热议问题