Skip to content
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

Closed
aleneum opened this issue Jan 28, 2020 · 4 comments
Closed
Labels
external bug Bug in upstream dependency

Comments

@aleneum
Copy link

aleneum commented Jan 28, 2020

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.

@aleneum
Copy link
Author

aleneum commented Jan 28, 2020

I updated the above mentioned issue with a recent 'minimal' example which reproduces the error.

@djee-ms
Copy link
Member

djee-ms commented Jan 28, 2020

Thanks @aleneum. Yes I am aware that at the moment the MediaCapture is locked by the local video track. I will have to talk with @chrisfromwork about this to understand the details and how we can share the MediaCapture between the two projects.

@djee-ms
Copy link
Member

djee-ms commented Feb 5, 2020

Discussed with @chrisfromwork, initial thoughts are that SpectatorView is not initializing MediaCapture from the UI thread, which might cause the issue.

@fibann fibann added external bug Bug in upstream dependency and removed bug Something isn't working labels Jul 28, 2020
@fibann
Copy link
Member

fibann commented Jul 28, 2020

Closing as this is not an issue with MR-WebRTC (see microsoft/MixedReality-SpectatorView#322).

@fibann fibann closed this as completed Jul 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external bug Bug in upstream dependency
Projects
None yet
Development

No branches or pull requests

3 participants