microsoft / MixedReality-HolographicRemoting-Samples

Code samples for using Microsoft's Holographic Remoting library.
Other
141 stars 48 forks source link

PlayerContext::BlitRemoteFrame() still return Failed_NoRemoteFrameAvailable #5

Closed richard008 closed 4 years ago

richard008 commented 4 years ago

PlayerContext::BlitRemoteFrame() still return Failed_NoRemoteFrameAvailable,“received frames ”has always been 0,“reused frames” has always been 60,and I can't see any remote renderings in hololens2. I'm trying to upgrade microsoft.holographic.appremoting to 2.0.18. The problem remains. But the host program m_remoteContext.OnSendFrame() can call back normally,and I can see everything on the host, including gestures, rays and squares, voice recognition and custom data channel can also be used normally. How can I troubleshoot ? host or remoting player or network or something else?

richard008 commented 4 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); It is working.