eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.43k stars 1.44k forks source link

camera examples do not work on the demo website #322

Closed DanielRuf closed 3 years ago

cyzeng-Luca commented 6 years ago

Duplicate of #328

DanielRuf commented 6 years ago

Mine is older, see the issue number ;-)

stephenguerin commented 6 years ago

error in console: tracking-min.js:8 [Deprecation] URL.createObjectURL with media streams is deprecated and will be removed in M68, around July 2018. Please use HTMLMediaElement.srcObject instead. See https://www.chromestatus.com/features/5618491470118912 for more details.

mskogly commented 5 years ago

Is there any browser that can run the fast camera example? https://trackingjs.com/examples/fast_camera.html Any way to fix it?

bid commented 5 years ago

"Is there any browser that can run the fast camera example?" Most likely not, given that the webcam APIs tracking.js uses have been deprecated for 5 YEARS now...

mskogly commented 5 years ago

I went through some old code of mine and actually found a fast camera example that works. No idea why this one plays and non of the other, or the original example file. Is does give a deprecation warning in Chrome console, but it plays fine, at least on my setup. At least until september 2018 :) https://pappmaskin.no/opensource/trackingjs/examples/fast_camera-onload-draw.html

"[Deprecation] URL.createObjectURL with media streams is deprecated and will be removed in M69, around September 2018. Please use HTMLMediaElement.srcObject instead. See https://www.chromestatus.com/features/5618491470118912 for more details."

aysenz commented 5 years ago

hey, what i can do?

aysenz commented 5 years ago

I found a cdn issue Screenshot 2019-05-22 at 19 42 11

aysenz commented 5 years ago

1.1.3 version works fine

DanielRuf commented 5 years ago

This is not a CDN issue per se. See http://unpkg.com/tracking which redirects to https://unpkg.com/tracking@1.1.3/build/tracking.js

Also see https://unpkg.com/tracking@1.1.3/build/tracking-min.js

Both files have the 1.1.2 header.

There was only the wrong code published and pushed to npmjs and others.

aysenz commented 5 years ago

Yes, it saved in all cdns

DanielRuf commented 5 years ago

Yes, it saved in all cdns

Sure because these are mostly mirrors of npmjs ;-)