UnityCapture icon indicating copy to clipboard operation
UnityCapture copied to clipboard

Can't get it to work in Firefox

Open Straafe opened this issue 5 years ago • 3 comments

So I've tested the project in OBS and it works flawlessly and easily, however there seems to be some issue preventing it from working in any firefox web page. I've tested the older project this is based on (UnityCam, https://github.com/mrayy/UnityCam), and it works in firefox (using various webcam testing sites and also on roll20.net). I did test this project out in chrome and it does work there.

When I go to webcam testing sites in firefox I get various errors (which may or may not be valid and helpful), usually it is along the lines of "Webcam already in use, please close any other programs using the webcam and try again" (although no other programs are using it) or "Camera not authorized, please check permissions." I think the most accurate/valid error is:

NotReadableError: Failed to allocate videosource

Which I got here.

I've tried to identify and eliminate any local circumstances to cause something like this to happen, but it's still possible this is user error. Has anyone else used this with firefox successfully? The webcam was not being used elswhere when I tried to use it in firefox. To make complete sure of this, I tried it after restarting both the workstation and browser and got same errors.

Edit: I don't know the first thing about C++, but I downloaded both the source code for this and UnityCam to see if I could compare/contrast them but they are structured differently enough I couldn't determine anything. I'd much prefer to use this one considering all the performance benefits and extra features it has.

Straafe avatar Mar 26 '19 20:03 Straafe