1. Are you ready for the Galaxy S20? Here is everything we know so far!

Using Web Cam in emulator

Discussion in 'Android Help' started by Vijith C, Feb 17, 2016.

  1. Vijith C

    Vijith C Lurker
    Thread Starter

    Hello,
    I am using latest android 23 platform and sdk together with Android Studio. My operating system is Ubuntu 14.04.1 lts. When I try to connect webcam with emulator, I am getting following error.
    "
    emulator: WARNING: _get_pixel_format_descriptor: Pixel format P207 is unknown
    emulator: ERROR: _camera_client_query_start: No conversion exist between P207 and NV21 (or RGB32) pixel formats

    "
    and I have given 200MB as sd card size. config.ini data is given below.

    avd.ini.encoding=UTF-8
    AvdId=Nexus_5_API_23_x86
    abi.type=x86
    avd.ini.displayname=Nexus 5 API 23 x86
    disk.dataPartition.size=200M
    hw.accelerometer=yes
    hw.audioInput=yes
    hw.battery=yes
    hw.camera.back=webcam0
    hw.camera.front=webcam0
    hw.cpu.arch=x86
    hw.dPad=no
    hw.device.hash2=MD5:2fa0e16c8cceb7d385183284107c0c88
    hw.device.manufacturer=Google
    hw.device.name=Nexus 5
    hw.gps=yes
    hw.gpu.enabled=yes
    hw.keyboard=no
    hw.lcd.density=480
    hw.mainKeys=no
    hw.ramSize=1536
    hw.sdCard=yes
    hw.sensors.orientation=yes
    hw.sensors.proximity=yes
    hw.trackBall=no
    image.sysdir.1=system-images/android-23/google_apis/x86/
    runtime.network.latency=none
    runtime.network.speed=full
    runtime.scalefactor=auto
    sdcard.path=/home/user/.android/avd/Nexus_5_API_23_x86.avd/sdcard.img
    skin.dynamic=yes
    skin.name=nexus_5
    skin.path=/home/user/android-studio/plugins/android/lib/device-art-resources/nexus_5
    snapshot.present=no
    tag.display=Google APIs
    tag.id=google_apis
    vm.heapSize=64


    When I run application, I get error saying 'Unfortunately Camera has stopped' in emulator. So if anybody know the solution please help me.
     


Loading...

Share This Page

Loading...