Issue metadata
Sign in to add a comment
|
javascript code to scan barcode not working with ip address
Reported by
baswapra...@gmail.com,
Oct 31 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36 Steps to reproduce the problem: Javascript code to scan barcode not working with IP address. It is working only with localhost. For example if I use URL: 192.168.1.120:8080/projectname/controller/htmlpage , the camera doesn't start but if I use URL: localhost:8080/projectname/controller/htmlpage camera opens. I am using MVC Architecture What is the expected behavior? What went wrong? I Have Attached two image files one with localhost other with ip address 192.168.1.120:8080 Did this work before? N/A Chrome version: 56.0.2924.76 Channel: n/a OS Version: Flash Version: Shockwave Flash 27.0 r0
,
Oct 31 2017
GetUserMedia is only allowed for secure origins. (https) and for localhost which is allowed for debugging purposes. See https://www.html5rocks.com/en/tutorials/getusermedia/intro/ Have you tried using it on a ip address that is backed by a HTTPS certificate?
,
Oct 31 2017
No, i haven't checked with https but i have deployed it server with http it dint'nt work. I think you are right i have read it it supports only secure origins. I will try with https. can you tell me or send me a code how to access camera with http only?
,
Oct 31 2017
Thank you for providing more feedback. Adding requester "dtapuska@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 31 2017
getUserMedia() only works on secure origins. HTTP is not a secure origin (unless it's localhost). There is no way to make getUserMedia() work with HTTP. Closing, since this is working as intended.
,
Oct 31 2017
okie thank you.
,
Nov 14 2017
The NextAction date has arrived: 2017-11-14 |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Oct 31 2017