This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
Initializing MediaCapture fails when SpectatorView has been used before #175
Labels
external bug
Bug in upstream dependency
I try to use WebRTC together with SpectatorView. Together as in "as part of the same Unity app", not at the same time. It seems that when one service has initialized the MediaCapture, the other one cannot do it afterwards unless I restart the app. SpectatorView needs temporary access to the camera to track ArUco markers. The camera is released after synchronization and the handle is disposed. However, when
PeerConnection
tries to initialize the device after SpectatorView released the media capture, exceptions are thrown. When I use WebRTC first, SpectatorView cannot initialize marker tracking. Even when all GameObjects related to WebRTC have been destroyed. Both services work fine in conjunction with Vuforia though. I can switch back and forth without any issues.System
I also filed that issue in the SpectatorView project (microsoft/MixedReality-SpectatorView#322) with a detailled debug log.
The text was updated successfully, but these errors were encountered: