Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynamsoft-camera-enhancer

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamsoft-camera-enhancer - npm Package Compare versions

Comparing version 3.3.0-beta-202302061748 to 3.3.0-beta-202302081845

2

package.json
{
"name": "dynamsoft-camera-enhancer",
"version": "3.3.0-beta-202302061748",
"version": "3.3.0-beta-202302081845",
"description": "Allow your website to easily control cameras on desktop and mobile devices.",

@@ -5,0 +5,0 @@ "private": false,

@@ -56,3 +56,3 @@ # Dynamsoft Camera Enhancer for Your Website

> In some rare cases, you might not be able to access the CDN. If this happens, you can use [https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.2.0/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.2.0/dist/dce.js)
> In some rare cases, you might not be able to access the CDN. If this happens, you can use [https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.0/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.0/dist/dce.js)

@@ -84,3 +84,3 @@ #### Host the SDK yourself

```html
<script src="/dce-js-3.2.0/dist/dce.js"></script>
<script src="/dynamsoft-camera-enhancer-js-3.3.0/dist/dce.js"></script>
```

@@ -94,3 +94,3 @@

or
or

@@ -134,7 +134,7 @@ ```typescript

* Modify the file `dist/dce.ui.html` directly.
- Modify the file `dist/dce.ui.html` directly.
This option is only possible when you host this file on your own web server instead of using a CDN.
* Copy the file `dist/dce.ui.html` to your project, modify it and use the the API `defaultUIElementURL` to set it as the default UI.
- Copy the file `dist/dce.ui.html` to your project, modify it and use the the API `defaultUIElementURL` to set it as the default UI.

@@ -146,3 +146,3 @@ ```javascript

* Append the default UI element to your page as shown in [Configure the CameraEnhancer object](#configure-the-cameraenhancer-object), customize it if necessary.
- Append the default UI element to your page as shown in [Configure the CameraEnhancer object](#configure-the-cameraenhancer-object), customize it if necessary.

@@ -166,5 +166,5 @@ ```html

* Build the UI element into your own web page and specify it with the API `setUIElement(HTMLElement)`.
- Build the UI element into your own web page and specify it with the API `setUIElement(HTMLElement)`.
* Embed only the video
- Embed only the video

@@ -186,3 +186,3 @@ ```html

* Add the camera list and resolution list. If the class names for these lists match the default ones, `dce-sel-camera` and `dce-sel-resolution` , the SDK will automatically populate the lists and handle the camera/resolution switching.
- Add the camera list and resolution list. If the class names for these lists match the default ones, `dce-sel-camera` and `dce-sel-resolution` , the SDK will automatically populate the lists and handle the camera/resolution switching.

@@ -215,9 +215,9 @@ ```html

* `dce.js` // The main SDK file
* `dce.mjs` // For using the SDK as a module (`<script type="module">`)
* `dce.ui.html` // Defines the default enhancer UI
- `dce.js` // The main SDK file
- `dce.mjs` // For using the SDK as a module (`<script type="module">`)
- `dce.ui.html` // Defines the default enhancer UI
### Step Two: Configure the Server
* Enable HTTPS
- Enable HTTPS

@@ -240,4 +240,6 @@ To use the SDK, you must access your website / web application via a secure HTTPS connection. This is due to browser security restrictions which only grant camera video streaming access to a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).

Yes, for simple testing purposes, it's perfectly fine to open the file directly from the hard drive. However, you might encounter some issues in doing so (like unable to access the camera, etc.). The recommendation is to deploy this page to your web server and run it over **HTTPS**. If you don't have a ready-to-use web server but have a package manager like *npm* or *yarn*, you can set up a simple HTTP server in minutes. Check out [`http-server` on npm](https://www.npmjs.com/package/http-server) or [yarn](https://yarnpkg.com/package/http-server).
Yes, for simple testing purposes, it's ok to open the file directly from the hard drive (`file://`). However, you might encounter some issues in doing so (like unable to access the camera, etc.). The recommendation is to deploy this page to your web server and run it over **HTTPS** or use "http://localhost" during development.
If you don't have a ready-to-use web server but have a package manager like *npm* or *yarn*, you can set up a simple HTTP server in minutes. Check out [`http-server` on npm](https://www.npmjs.com/package/http-server) or [yarn](https://yarnpkg.com/package/http-server).
### Why can't I use my camera?

@@ -249,3 +251,3 @@

* In Safari 12 the equivalent error is:
- In Safari 12 the equivalent error is:

@@ -258,6 +260,6 @@ > Trying to call getUserMedia from an insecure document.

* NGINX: [Configuring HTTPS servers](https://nginx.org/en/docs/http/configuring_https_servers.html)
* IIS: [Create a Self Signed Certificate in IIS](https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/)
* Tomcat: [Setting Up SSL on Tomcat in 5 minutes](https://dzone.com/articles/setting-ssl-tomcat-5-minutes)
* Node.js: [npm tls](https://nodejs.org/docs/v0.4.1/api/tls.html)
- NGINX: [Configuring HTTPS servers](https://nginx.org/en/docs/http/configuring_https_servers.html)
- IIS: [Create a Self Signed Certificate in IIS](https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/)
- Tomcat: [Setting Up SSL on Tomcat in 5 minutes](https://dzone.com/articles/setting-ssl-tomcat-5-minutes)
- Node.js: [npm tls](https://nodejs.org/docs/v0.4.1/api/tls.html)

@@ -264,0 +266,0 @@ ## API Documentation

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc