microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
913 stars 283 forks source link

Webcam Source does not find the camera on Hololens 2. #475

Open SimGu96 opened 4 years ago

SimGu96 commented 4 years ago

Describe the bug If I have the webcam source component as the video track source and running on Hololens 2, I get errors like: 'The stream number provided was invalid.' 'No capture devices are available.'.

Output-Debug.txt

However if I print the first device from PeerConnection.GetVideoCaptureDevicesAsync() rigth before WebcamSource.cs is setting the deviceConfig "var deviceConfig = new LocalVideoDeviceInitConfig" It prints: " \?\DISPLAY#QCOM_AVStream_850#3&809a381&0&UID32768#{e5323777-f976-4f5b-9b55-b94699c46e44}{5584F823-3830-4CFD-947F-78DE17A8B14C} "

Does that mean it can find the camera but not use it for some reason?

If I use SceneVideoSource on my desktop in Unity insted of WebcamSource on Hololens 2 it works. So the webrtc signaling part should be working.

Expected behavior A video stream sent from my Hololens 2.

Environment

djee-ms commented 4 years ago

The camera was detected, but is not available. There is likely another application using it, possibly another instance of the app still runnning; check with the Developer Portal maybe? I tested the master branch yesterday and everything works fine.

kiokju commented 4 years ago

I have same issue. My develop Environment is Unity, hololens2, ARM.

'The stream number provided was invalid.' 'No capture devices are available.'.

Same error.

I check Developer Portal. But Not found any camera use App.

Mathieu-Allaert commented 3 years ago

@kiokju did you find a solution?

kiokju commented 3 years ago

@kiokju did you find a solution?

Yes. Maybe It was Unity version issue. After 2019.4.14. This issue is fixed.