New issue
Advanced search Search tips

Issue 779950 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-11-14
OS: Linux
Pri: 2
Type: Bug



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 description

UserAgent: 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
 
Screenshot from 2017-10-26 15:18:37.png
303 KB View Download
Screenshot from 2017-10-26 15:18:57.png
116 KB View Download
 Issue 779952  has been merged into this issue.
Components: -Blink Blink>GetUserMedia
Labels: Needs-Feedback
NextAction: 2017-11-14
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? 
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?
Project Member

Comment 4 by sheriffbot@chromium.org, Oct 31 2017

Cc: dtapu...@chromium.org
Labels: -Needs-Feedback
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

Comment 5 by guidou@chromium.org, Oct 31 2017

Status: WontFix (was: Unconfirmed)
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.
okie thank you.
The NextAction date has arrived: 2017-11-14

Sign in to add a comment