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

getUserMedia API needs HTTPS only #3

Closed
frontenddeveloping opened this issue Jan 15, 2016 · 14 comments
Closed

getUserMedia API needs HTTPS only #3

frontenddeveloping opened this issue Jan 15, 2016 · 14 comments

Comments

@frontenddeveloping
Copy link

Chrome error:

Mixed Content: The page at 'https://kdzwinel.github.io/JS-OCR-demo/' was loaded over HTTPS, but requested an insecure resource 'http://ghbtns.com/github-btn.html?user=kdzwinel&repo=JS-OCR-demo&type=watch&count=true'. This request has been blocked; the content must be served over HTTPS.

Security changes were released to Chrome, unsecured (HTTP) sites no longer able to implement voice, video.

@kdzwinel
Copy link
Owner

Hey, thanks for reporting - see #2 for solution.

@alejandri
Copy link

Hi very nice work. I cannot upload photo from cellphone, show me a black screen after take picture. Motorola G Version Android 4.4.4
Extra question: how I can uplod file jpg directly with a simple form?
12825390_10201292710557356_1850513641_n

@frontenddeveloping
Copy link
Author

@alejandri if you will open remote console you will get the same error. I just create a fork.

@kdzwinel
Copy link
Owner

@alejandri please let me know what browser and which version you are using, I'll try to reproduce that. Please also make sure that you are on the https version of the website

@frontenddeveloping as far as I understand, there is no need to fix anything, just make sure to open the website via HTTPS. Am I right?

@frontenddeveloping
Copy link
Author

@kdzwinel you have http request (http://ghbtns.com) in https mode. This throw error and getUserMedia API don't work.

@kdzwinel
Copy link
Owner

@frontenddeveloping ah, I missed that, thank you!

kdzwinel added a commit that referenced this issue Mar 14, 2016
@greatbiodun1
Copy link

greatbiodun1 commented Apr 26, 2016

I download the JS_OCR run the index file for a test before using, its not working. can anyone guide me on the installation please?

@kdzwinel
Copy link
Owner

You can't just open the index file in your browser from your filesystem, you need a http server (e.g. https://www.npmjs.com/package/http-server ). Also make sure you are using localhost as your host, otherwise it won't work over http (it will require https to access camera).

@greatbiodun1
Copy link

ok, how can I configure my localhost to use https instead of http?

@kdzwinel
Copy link
Owner

if you use http://localhost, you can use http. If you use anything else, you have to use https.

@greatbiodun1
Copy link

Thanks you, it worked!. the text recognition is poor

On 26 April 2016 at 12:52, Konrad Dzwinel notifications@github.com wrote:

if you use http://localhost, you can use http. If you use anything else,
you have to use https.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#3 (comment)

Adegbuyi Abiodun Oluwaseun

Software Architect

08038141686

@kdzwinel
Copy link
Owner

Fix it! I'm using this library - http://antimatter15.com/ocrad.js/demo.html

@greatbiodun1
Copy link

is the OCRAD you are using the updated version?

On 26 April 2016 at 13:29, Konrad Dzwinel notifications@github.com wrote:

Fix it! I'm using this library -
http://antimatter15.com/ocrad.js/demo.html


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#3 (comment)

Adegbuyi Abiodun Oluwaseun

Software Architect

08038141686

@kdzwinel
Copy link
Owner

I havent' updated it in a while, please do that! You can create a PR when you will.

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

No branches or pull requests

4 participants