How to integrate barcode scanner into a website? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am currently creating a website, and I need to integrate barcode scanner on it. The website is build with HTML and CSS. I want to have a live stream barcode scanner. When you go to the website I want the clients to be able to scan the barcode and then to show the image of an item that they have scanned. So, can you tell me how to integrate barcode scanner on the website and how to make it show the image of the scanned item.

You can read input from barcode scanner using a java application (or any language of your choice) locally.
For e.g. following explains reading from barcode scanner using java
Barcode Scanner implementation on Java
Once you read in java, you can use websockets to send data to web app. Since websockets are bi-directional, no page refresh will be required and as data comes on socket your web application can respond.
I have created similar application using firebase for web sockets.

Related

Accesing camera via Javascript, taking a picture and sending it to Firebase CloudStorage [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Good morning, I´m studiyng and have this problem to solve. I have to create the logic in Javascript with nodejs, to access the device camera (this is a webApp, not Android, thats why is coded in JS), then take a picture and then send it to my backend and save it in Firebase Cloud Storage. I´m not asking for a complex code, but if u know any source, or any repository to start working will be appreciated.
Thanks in advance :D
Happy coding!
When using Node.js as part of a web application it is used for the server-side component of the application and doesn't have access to any cameras on devices accessing it.
You need to use client-side code to do that.
iOS and Android devices tend to make the camera available as an option when you use a regular <input type="file"> so you can use a normal HTML form and your usual multipart-capable body parsing library (not body-parser although its documentation list some options) on your server.
If you want access to a webcan cam then you'd need to look into WebRTC.

How to interface an hardware device using javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I had developed a web application in ASP.NET MVC using C# which is used for billing purpose. But now the client had a new requirement that he need to connect swiping device so that the customers can pay using their cards.
Now the issue is that how i communicate with the device from javascript? i had tried web socket but is not succeed.Is there any ways to make this possible ?
You can use the self host Web API to communicate with the swiping device.
You can simply create a self hosted Web API to communicate with the swiping device
Make it run on the client machine
Call the API from your java script
It will work perfectly
Look at the documentation of the swiping device, it should explain how you should interface with it.
Of course there's no web browser API to interface with every imaginable peripheral device, so you're simply going to have to put your software development skills to work and create a compatibility layer.

show live TV from a connectted USB DVB-T stick (on windows) on a local web page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to buy a DVB-T stick which gets connect to PC and laptop by USB and has a software to play live TV on windows. What I want to do with that is to show the live TV stream from that stick on a web browser instead of the original windows software. The reason behind that is I need to use it in a digital signage program which only supports web platform for these kind of medias.
As far as I know, if I could make a html page which contains the player to show the live stream from the USB stick, the job is done, but my question is how to write that html page exactly. Any suggestion?
Thanks for paying attention to my question and helping me in advance.
This is not possible with HTML. Also PHP and JavaScript will not fit this problem. Because that are web based languages. You can not access plugin devices in any way.
The only way you can do is to write an application in C#/C++/Java which will read the usb and open it in a webview to show.

android phone which connects to web application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a photo capturing system by using javascript and also HTML5 for my college project. I'm thinking of creating "somehow" called a remote control by using android device to communicate to the web application open on my laptop.
maybe I make you guys confuse already,
let say the android device have a CAPTURE BUTTON. when user click on the button, it will capture the photo inside the laptop web applications. The purpose of the android device is work like a remote control when user tap on the CAPTURE BUTTON. Is there any technology can make this happen?
I have this idea is because of there's a lot of android apps which is can connects to the computer as a mouse or as a keyboard. So, I was thinking is it possible that create a application communicate with the javascript inside of my webapp.
Thank you for answering and viewing the question.
yes it is possible. You can do it by using Node.js. I have created a presentation using Node.js and by using html code. Then I open the controller on laptop and ppt on my mobile application WebView. then I am able to record and save the video automatic as slides changes in my android phone.
so by manipulating some code you can do what ever you want.

Voice chat in the browser? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We are looking to implement a group -voice- chat in the browser using node.js on the server. Is this possible?
If you want your solution to be purely JavaScript based on both, server and client side, then you would probably have to wait for the WebRTC, Device API or media capture API and then implement node.js backend for it.
Other than that it is, I would say, a question of Flash oriented APIs on the client side (for accessing devices such as cameras or microphones) and some kind of interoperability with node.js backend in case you don't want to take advantage of Flash Media Server or Red5.
I'm researching and working on the same problem.
This is my proposed stack:-
capturing voice on the client
https://github.com/jiehanzheng/Recorderjs/blob/master/README.md
encoding the captured speech so that it can be shared via Node
https://github.com/jpemartins/speex.js
sharing voice data with multiple users
node.js and socket.io
Somebody wrote a THESIS on this. good read but some missing code in the samples
http://pure.ltu.se/portal/files/36285511/LTU-EX-2012-36247736.pdf
relevant question on so. in particular look at answer by sirjamm
How to Call SPEEX Audio Decode/Encode in HTML5 / JavaScript (Without Flash)
If I get it working, will post the github ref here.
hth

Categories

Resources