Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Issue with Windows Phone 8.1 and WebCamTexture

Discussion in 'Windows' started by ruksi, Oct 6, 2014.

  1. ruksi

    ruksi

    Joined:
    Jan 28, 2013
    Posts:
    1
    Hi!

    The release notes for 4.3 mention:
    • Windows Phone: WebCamTexture/Microphone support.
    However, when I call WebCamTexture.devices on a device with Windows Phone 8.1, I get a SEHException. The same code works on Android and iOS.

    Shouldn't this work? Or should I do something else before calling WebCamTexture.devices?

    I am currently on Unity Free 4.5.0f6.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Wait, is it Windows Phone 8.0 or 8.1? When building from Unity? 8.1 is found under Windows Store Apps as SDK choice.
     
  3. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Either way SEHException is a security exception, check you've enabled permissions for the camera and double check them in the visual studio project.
     
  4. Preyer

    Preyer

    Joined:
    Sep 4, 2013
    Posts:
    1
    This. After building, go to edit (buildFolder)/(projectName)/Properties/WMAppManifest.xml. You need to add a Capability with name ID_CAP_ISV_CAMERA to enable the permission.