locked
Problem by using Windows.Media.Capture in hololens uwp exported by unity RRS feed

  • Question

  • For MixedReality app I need to access the "Sensor Streaming" for depth image. In order to use the API for sensor streaming I have to turn on the ToolVersion from "14" to "15", for example

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    in project file.

    By default ToolVersion="14", thus will result in "Access Denied" exception by calling MediaCapture.InitializeAsync(mySettings); Unity (I tested frome Unity 2017 to the newest Unity 2018.2.9) exports UWP Projects all with ToolVersion="14". Modifying the Version manually to 15 will cause System.runtime conflicts to other dlls of UnityEngine. The AssembleConverter.exe provided by Unity is not able to convert the existing managed code. How could I solve this problem?

    I could only use standalone UWP to access the depth sensor, not the UWP exported by the unity!

    Wednesday, September 26, 2018 9:37 PM

All replies

  • For help with HoloLens and Mixed Reality development please see the communities and support offerings linked in the Mixed Reality Dev Center's Community and support page: https://developer.microsoft.com/en-us/windows/mixed-reality/community

    That said, modifying the ToolVersion is probably not the issue here. More likely you're missing the perceptionSensorsExperimental restricted capability. If adding that doesn't fix the problem then please provide more details about exactly what you're doing, how it's failing, and why you think changing the ToolVersion is relevant when you repost.

    Wednesday, September 26, 2018 10:08 PM
  • thanks so much for the advice. I would switch to that community for further problems.

    Here to the existing topic, I came up with this idea because I changed both the ToolVersion and the rescap. I just forgot the second one I made. Now I could proceed the unity project by keeping the ToolVersion. 

    best regards

    Steven

    Thursday, September 27, 2018 10:27 AM