forked from forks/ffprobe-wasm
Update readme and add alert for browser compatibility warning.
This commit is contained in:
@@ -23,9 +23,14 @@ Emscripten is also used to create and compile the Wasm bindings to be imported b
|
|||||||
docker-compose run ffprobe-web-analyzer make
|
docker-compose run ffprobe-web-analyzer make
|
||||||
```
|
```
|
||||||
|
|
||||||
This will build the WASM module and place it into the `/dist` folder.
|
This will build the Wasm module and place it into the `/dist` directory.
|
||||||
|
|
||||||
* Install and run web:
|
* Copy the JS and Wasm modules into `www/public/`:
|
||||||
|
```
|
||||||
|
cp -a dist/. www/public/
|
||||||
|
```
|
||||||
|
|
||||||
|
* Install and run the web application:
|
||||||
```
|
```
|
||||||
cd www
|
cd www
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
3
www/.gitignore
vendored
3
www/.gitignore
vendored
@@ -21,3 +21,6 @@ pnpm-debug.log*
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
public/*.js
|
||||||
|
public/*.wasm
|
||||||
@@ -14,6 +14,11 @@
|
|||||||
|
|
||||||
<div id="app" class="container">
|
<div id="app" class="container">
|
||||||
<h3>FFProbe Web Analyzer</h3>
|
<h3>FFProbe Web Analyzer</h3>
|
||||||
|
|
||||||
|
<b-alert variant="warning" show>
|
||||||
|
⚠️Compatible with Chrome and Edge only due to limited support for <a href="https://caniuse.com/sharedarraybuffer">SharedArrayBuffer</a> and the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer">required CORS headers</a> for Firefox on Github Pages.
|
||||||
|
</b-alert>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
<File />
|
<File />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ module.exports = {
|
|||||||
pages: {
|
pages: {
|
||||||
index: {
|
index: {
|
||||||
entry: 'src/main.js',
|
entry: 'src/main.js',
|
||||||
title: 'FFMpeg WebTools',
|
title: 'FFProbe Web Analyzer',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
publicPath: process.env.NODE_ENV === 'production'
|
publicPath: process.env.NODE_ENV === 'production'
|
||||||
|
|||||||
Reference in New Issue
Block a user