headtrackr icon indicating copy to clipboard operation
headtrackr copied to clipboard

targets demo does not work in modern browsers (chrome / brave / opera)

Open duckfev3r opened this issue 5 years ago • 2 comments

Hi, I'm trying to get the awesome targets demo to run - it's displaying the webGL components fine, but not responding to movement in front of the camera. Would it be possible to get a copy of the sourcecode for the targets demo ?

Thanks !

duckfev3r avatar Jul 23 '19 08:07 duckfev3r

Since I discovered this project today, and discovered this bug, I placed a working version at https://headtrackr.tcg.com/targets.html with the source at https://headtrackr.tcg.com/headtrackr.tar

Mine works for Chrome and Edge but not Firefox (I thought I incorporated the main change in R-Aravind's pull request, but I'm missing something, so I'll have to try again later).

rbuccigrossi avatar Dec 31 '22 22:12 rbuccigrossi

It looks like we need another pull request! Safari on iOS uses the modern navigator.mediaDevices.getUserMedia interface that uses promises. Once I updated the headtrackr "init" function to use the newer interface it worked on the latest Chrome, Edge, Firefox and iOS Safari. I updated my demo at https://headtrackr.tcg.com/

rbuccigrossi avatar Jan 01 '23 23:01 rbuccigrossi