Update readme and add alert for browser compatibility warning.

This commit is contained in:
Alf
2020-11-02 18:33:33 -08:00
parent 6be1bcd131
commit fc142e8ab1
4 changed files with 16 additions and 3 deletions

View File

@@ -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
```
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
npm install

3
www/.gitignore vendored
View File

@@ -21,3 +21,6 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
public/*.js
public/*.wasm

View File

@@ -14,6 +14,11 @@
<div id="app" class="container">
<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 />
<File />
</div>

View File

@@ -2,7 +2,7 @@ module.exports = {
pages: {
index: {
entry: 'src/main.js',
title: 'FFMpeg WebTools',
title: 'FFProbe Web Analyzer',
}
},
publicPath: process.env.NODE_ENV === 'production'