Closed ShayneRC closed 5 years ago
I got it working by changing line 417 of SampleHostMain.cpp for the desktop host from:
CreateRemoteContext(m_remoteContext, 20000, false, PreferredVideoCodec::Default);
to CreateRemoteContext(m_remoteContext, 20000, false, PreferredVideoCodec::H264);
.
Although that gave me a flickering green screen but I could briefly see the cube and pointer. I then turned off Use desktop accelerated graphics
for the HoloLens 2 emulator and all is working fine.
I have attempted to get both samples working and have managed to get enough going to attempt a connection between the 2. Now I am using the HoloLens 2 simulator so I had to change the player sample to work for x64 instead of ARM. That is now working and showing the UI although I had to skip over a line of code (line 433 of SamplePlayerMain.cpp).
When I run the UWP host sample it crashes straight away so I tried the desktop version and managed to get something going. There wasn't much in terms of a tutorial so I assume that the host application having a plain white screen and then going to just a plain blue screen isn't how it's meant to go.
So when I hit the space bar in the desktop app it attempts to connect to the HoloLens player app and fails with this error message: Disconnect: Transport connection was closed due to the requested video codec not being available.
Is there something I can do to get this working? If you need anymore information let me know!