Standalone UWP Unity app for holographic remoting? [Unity / UWP / HoloLens Remoting]

Hi,

I am trying to convert an existing HoloLens Unity (2018.2.14f1) application to a standalone holographic remoting application. The holographic remoting works correctly in the Unity editor emulator, but I am unable to get the standalone UWP build to connect to the HoloLens.

I can build the UWP app packages, install it and run it, and the application starts on my Windows 10 PC as expected. If I try to first connect to the remoting service before loading the WindowsMR device (as shown here: Unity - Scripting API: HolographicRemoting), upon trying to connect to the remote HoloLens (running the remoting client app) I am getting the error “InvalidOperationException: Enable VR Streaming to allow connection to remote holographic device”. Loading the WindowsMR device first, and then connecting the remoting just causes the hololens to go blank.

The remoting samples work as expected but these are pure UWP implementations in C++ (MixedRealityCompanionKit/RemotingHostSample at master · microsoft/MixedRealityCompanionKit · GitHub)but I want to use C# and Unity

I have implemented the code as shown on the Unity documentation.
Unity - Scripting API: HolographicRemoting. In Unity, I have enabled VR support and WSA Holographic Remoting, and I have added the Windows Mixed Reality SDK in XR Settings

Any help would be appreciated greatly!
Thanks

Note: I have also tried April 2018 RS4 Update (10.0.17134.111) with the same issue. Blank hololens display when loading the WindowsMR device (after remote connection established)

–

2 Answers

2

Following up… (BTW I am using Unity 2018.2.14f1)

After much trial and error I can now connect to holographic remoting in the editor… both by explicitly pressing the “connect” button in the holographic emulator panel… and also via code using HolographicRemoting.Connect(IP);

I have narrowed the issues I was having down to including the “None” entry in Virtual Reality SDKs list under XR Settings. If I have only the “Windows Mixed Reality” entry in the list then everything works as expected. As soon as I add “None” (either before or after the WindowsMR entry), the remoting connects to the HoloLens, the remoting window disappears on the hololens, however my application does not appear on the device (blank display). If I remove “None” it works again.

127029-xrsettings.png

I need the “None” entry to be first in the list (followed by WindowsMR) in order for me to run the standalone UWP app on my PC, otherwise the app running on Windows PC immediately prompts me to connect a WindowsMR headset. As I understand it, having “None” as the first entry should allow me to run the standalone UWP app on my PC, I then first connect to the holographic remoting service, then LoadDeviceByName(“WindowsMR”) after the remoting service has connected. But adding “None” as first in the list causes the above mention problem also on the standalone build in Visual Studio, remoting connects but the HoloLens shows only a blank display. And not having “None” as first in the list causes the app to immediately request for a headset to be connected to the PC… which I obviously don’t want.

Is anyone else experiencing this issue?

FYI I believe the “InvalidOperationException: Enable VR Streaming to allow connection to remote holographic device” error is caused by trying to load the WindowsMR device before connecting to the remoting service… which makes sense now but I was getting confused due to the problem with adding “None” to the SDK list

Hello abuklea, I'm in the same situation. I'll keep you updated of future updates.

–

I'm facing the exact same issue. Did you get to solve the problem?

–

Hi @francescocagnetta and @svenbrunner90 Any updates on this issue... Did you manage to solve it?

–

Same problem here. Any Update?

–

This works for me.