microsoft / WebRTC-universal-samples

WebRTC samples for the Universal Windows Platform.
178 stars 70 forks source link

How to close HololensCamera #41

Closed alnegod1 closed 5 years ago

alnegod1 commented 5 years ago

Hi,sir; I had a successful video call with the PC client using HoloLens‘ when I disconnected the Called, PC client's camera turn off,ButHololens'external camera wouldn't shut down.I had eproduce it in a Debug build running on HL,Here is the VS output.When I disconnected the Called, 1539142164 1 Here are some others VS output: OutPut.txt Thanks

Fritzwald commented 5 years ago

Hi @alnegod1, have you added

<Extensions>
   <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>WebRtcScheme.dll</Path>
        <ActivatableClass ActivatableClassId="WebRtcScheme.SchemeHandler" ThreadingModel="both" />
      </InProcessServer>
   </Extension>
</Extensions> 

to the Package.appxmanifest file?

alnegod1 commented 5 years ago

Yes,I had added it 1539222572 1 Could you help me build a good APPx for hololens used this sample:WebRTC-universal-samples/Samples/PeerCC-Sample/ClientUnity/Unity/PeerCCUnity?Because I don't know if that example is good or bad

Fritzwald commented 5 years ago

Ok so if that was not the problem then I recommend you look through issue #40 and check the things I and, more importantly, mingalll have said. For example rebuild PeerConnectionClient.WebRtc.UnityD3D.sln to reimport the dll's into Unity. The sample usually works very well, there's just some hiccups sometimes.

alnegod1 commented 5 years ago

I had rebuild it many times;Everything is OK ;I only build it with Unity 2017.4.8;Is that why?

Fritzwald commented 5 years ago

It might be. I personally use 2017.4.2 where it works, so it might be worth a try.