Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

I need capture a photo while streaming a live preview from the Device Portal

HaihanHaihan
edited July 2016 in Questions And Answers

Hi guys, I read the following line in the document of "Using the Windows Device Portal"

Note that HoloLens apps will not be able to capture an MRC photo or video while you are recording or streaming a live preview from the Device Portal.

Currently I'm working on a APP that need take a photo and sometimes I need to demo it by live preview of Device Portal. But event I just want a none-MRC photo by the following code, I still got failed.
PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);

So is there any ideas about how can I take a normal photo while sharing my view?
Or taking a step back, could I detect that user is using the camera, so I can just warning user stop recording or streaming live preview.

Answers

  • Options

    Can you just catch the error and pop up a warning?

  • Options

    Hi WithinRafael, It looks that after I try to capture photo while live previewing and got an error, it will alway got error when call camera even I close live preview.
    I'm not sure if there any ways to avoid it. I think it's a normal case, any APP that need using camera will meet this situation due to user can start record video anytime by Cortana.

Sign In or Register to comment.