Last Updated on 2018-10-10
Want to embed video preview and webcam capture to your Web application in pure HTML + JavaScript? Check out Dynamsoft Camera SDK.
Dynamsoft Camera SDK provides JavaScript APIs that enable you to easily capture images and video streams from USB Video Class (UVC) compatible webcams from within a web browser. With the browser-based webcam library, you can stream webcam video and capture images with a few lines of JavaScript code in your web application.
Overview of Dynamsoft Webcam SDK
Environment
Browser: Edge, Firefox, Chrome, and Internet Explorer 6 or above
OS: Windows
Features
- Developers can have complete control over a webcam, e.g., exposure, iris, auto focus, etc.
- A Dynamsoft Webcam object consists of one video viewer and multiple image viewers. Image viewers can be dynamically created and destroyed.
- Supports embedding video stream in a browser.
- Supports image editing.
- Supports importing from DIB and exporting to base64 and DIB.
- Uploads images to an HTTP server. Both sync and async transfer mode are supported.
More features
How Does Dynamsoft Webcam SDK Work

The SDK includes two core modules: JavaScript library and webcam service:
- JavaScript Library runs within a web browser. It communicates with the webcam Windows Service via HTTP. It accepts and sends users’ operation requests to the webcam service, and processes results from the service.
- Webcam Service listens on 127.0.0.1 and handles the interface with cameras (via UVC) and passes the response to the JavaScript layer.