Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaStreamTrack.getSources is deprecated, update it to MediaDevices.enumerateDevices() #7

Open
srinusoft opened this issue Nov 2, 2016 · 4 comments
Labels

Comments

@srinusoft
Copy link

Hi,

i am building this as Cordova Project and copies all html and js files to my Project and camera is not opening when i am trying to take the picture. when i look at the logs it says "MediaStreamTrack.getSources is deprecated", Could you please let me know the alter native to this,

@kdzwinel
Copy link
Owner

kdzwinel commented Nov 2, 2016

Hi! AFAIK the replacement for this deprecated method is: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices . I'd appreciate PR if you'd be able to fix it in my project.

@kdzwinel kdzwinel closed this as completed Nov 2, 2016
@kdzwinel kdzwinel reopened this Nov 2, 2016
@kdzwinel kdzwinel changed the title Camera is not opening camra and log says MediaStreamTrack.getSources is deprecated MediaStreamTrack.getSources is deprecated, update it to MediaDevices.enumerateDevices() Nov 2, 2016
@kdzwinel kdzwinel added the bug label Nov 2, 2016
@srinusoft
Copy link
Author

Sorry for the confusion. i am building it as android app using cordova, i was missed to add some camera permissions. Now it is working fine but the text from image is not capturing correctly.

@kdzwinel
Copy link
Owner

kdzwinel commented Nov 2, 2016

well, the OCR library I'm using is not in the latest version - you can try updating it. You can also try using other, more promising, library - tesseract.projectnaptha.com . Also, note that using camera via web platform doesn't support focus AFAIK, so images may be blurred.

@ve3
Copy link

ve3 commented Oct 23, 2018

Maybe this issue is the same.
#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants