brownhci/WebGazer

Uncaught (in promise) TypeError: failed to fetch

Open

#260 创建于 2022年6月2日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)HTML (3,412 star) (520 fork)batch import
help wanted

描述

I am trying to run webgazer from an old portable Chromium version (61) on an offline computer (yes, I know it's an odd use case).

When I run the sample webgazer.setGazeListener code from https://webgazer.cs.brown.edu/ I get the error in the title. I am running this on a page served from a local Node.js server. The server doesn't use HTTPS by default, but I thought that might not matter since this is such an old version of Chromium (i.e. before various APIs started only working on secure origins).

I get a prompt to allow access to the webcam (an attached Logitech C920 since it's a desktop), which I allow, but the error still appears. Based on the code at the line number mentioned in the error stack trace (line 148496) it seems like there's an issue getting the stream from the webcam. But the webgazer face overlay canvas is created and I can see myself. However the setGazeListener does not run (doesn't print elapsed time as in example).

贡献者指南