You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+75-2Lines changed: 75 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,82 @@ Execute playwright code coverage test by simply run
22
22
npm test
23
23
```
24
24
25
-
## License
25
+
## Request a Trial License
26
+
27
+
The key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" used in this solution (found in the js/init.js file) is a test license valid for 24 hours for any newly authorized browser. If you wish to test the SDK further, you can request a 30-day free trial license through the <ahref="https://www.dynamsoft.com/customer/license/trialLicense?product=mrz&utm_source=docs&package=js"target="_blank">Request a Trial License</a> link.
28
+
29
+
## Project Structure
30
+
31
+
```text
32
+
Sample Project
33
+
├── assets
34
+
│ ├── ...
35
+
│ ├── ...
36
+
│ └── ...
37
+
├── css
38
+
│ └── index.css
39
+
├── font
40
+
│ ├── ...
41
+
│ ├── ...
42
+
│ └── ...
43
+
├── js
44
+
│ ├── const.js
45
+
│ ├── index.js
46
+
│ ├── init.js
47
+
│ └── util.js
48
+
├── index.html
49
+
└── template.json
50
+
```
51
+
52
+
*`/assets` : This directory contains all the static files such as images, icons, etc. that are used in the project.
53
+
*`/css` : This directory contains the CSS file(s) used for styling the project.
54
+
*`/font` : This directory contains the font files used in the project.
55
+
*`/js` : This directory contains all the JavaScript files used in the project.
56
+
*`const.js` : This file contains definitions of certain constants or variables used across the project.
57
+
*`index.js`: This is the main JavaScript file where the core logic of the project is implemented.
58
+
*`init.js` : This file is used for initialization purposes, such as initializing license, load resources, etc.
59
+
*`util.js` : This file contains utility functions that are used across the project.
60
+
*`index.html` : This is the main HTML file that represents the homepage of the project.
61
+
*`template.json` : This file contains predefined templates used in the project.
62
+
*`minimum-elements.html` : This HTML file includes the sample project with minimal elements and limited CSS, all contained within a single page.
63
+
64
+
## System Requirements
65
+
66
+
This project requires the following features to work:
67
+
68
+
- Secure context (HTTPS deployment)
69
+
70
+
When deploying your application / website for production, make sure to serve it via a secure HTTPS connection. This is required for two reasons
71
+
72
+
- Access to the camera video stream is only granted in a security context. Most browsers impose this restriction.
73
+
> Some browsers like Chrome may grant the access for `http://127.0.0.1` and `http://localhost` or even for pages opened directly from the local disk (`file:///...`). This can be helpful for temporary development and test.
74
+
75
+
- Dynamsoft License requires a secure context to work.
The above four features are required for the SDK to work.
80
+
81
+
-`MediaDevices`/`getUserMedia`
82
+
83
+
This API is required for in-browser video streaming.
84
+
85
+
-`getSettings`
86
+
87
+
This API inspects the video input which is a `MediaStreamTrack` object about its constrainable properties.
88
+
89
+
The following table is a list of supported browsers based on the above requirements:
90
+
91
+
| Browser Name | Version |
92
+
| :----------: | :--------------: |
93
+
| Chrome | v78+<sup>1</sup> |
94
+
| Firefox | v63+<sup>1</sup> |
95
+
| Edge | v79+ |
96
+
| Safari | v14+ |
97
+
98
+
<sup>1</sup> devices running iOS needs to be on iOS 14.3+ for camera video streaming to work in Chrome, Firefox or other Apps using webviews.
26
99
27
-
You can request a 30-day trial license via the [Request a Trial License](https://www.dynamsoft.com/customer/license/trialLicense/?product=cvs&utm_source=github&package=js) link.
100
+
Apart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.
0 commit comments