The sample demonstrates how to implement a HTML5 Webcam Barcode Reader for both mobile and PC Web browsers with Dynamsoft Barcode Reader SDK and Java WebSocket.
- Import the websocket-server project to eclipse.
- Download the java library of Dynamsoft Barcode Reader and add it to the build path.
- Build and run the WebSocket server.
- Visit https://127.0.0.1:8443.
- Select a Webcam source. On mobile devices, you can toggle between front-facing camera and back-facing camera.
- Click button to detect barcode.
How to Make HTML5 Barcode Reader with Desktop and Mobile Cameras