Is it possible to capture single Hololens frame during Holographic remoting?

WL.TSAI 85 Reputation points
2023-08-17T08:48:04.8333333+00:00

Hi supports,

I am developing a Unity application with holographic remoting for HoloLens. In my use case, I need to capture single frame of Hololens during remoting.

Should I create a customized remote player app with the reference here: https://video2.skills-academy.com/en-us/windows/mixed-reality/develop/native/holographic-remoting-create-player and use some capturing APIs?

Or should I call the device portal API to capture frames here: https://video2.skills-academy.com/en-us/windows/mixed-reality/develop/advanced-concepts/device-portal-api-reference? I want to make seamless capturing without using the windows device portal GUI.

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
397 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,091 Reputation points Microsoft Vendor
    2023-08-18T05:09:37.7833333+00:00

    Hello, Welcome to Microsoft Q&A,

    As far as I know Holographic Remoting does not support UWP's Media Capture APIs, and in Unity Editor, the project is run as a win32 app, which does not support WinRT APIs.

    For Device Portal, if what you want is to capture a photo, then you can try the Device Portal REST API, but it should be noted that Device Portal is only applicable to the development environment. You can see this note in Using the Windows Device Portal - Mixed Reality | Microsoft Learn.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.