Add browser examples

This commit is contained in:
jeromewu
2023-08-03 08:49:38 +00:00
parent 40a97e32c6
commit 57a029afa9
10 changed files with 155 additions and 55 deletions

View File

@@ -1,5 +1,14 @@
Browser Examples
==================
# Browser Examples
## Setup
You need to download assets from npm before running the examples:
```bash
$ npm run download
```
## Run
To run this example, execute:
@@ -7,16 +16,13 @@ To run this example, execute:
$ npm start
```
Visit http://localhost:3000/examples/browser/transcode.html
Visit http://localhost:8080 to check avaiable examples.
## Examples
Web Worker Examples
==================
To run the webworker example, execute:
```
$ npm run start:worker
```
Visit http://localhost:3000/examples/browser/transcode.worker.html
| Example | Description |
| ------- | ----------- |
| transcode.html | Transcoding example |
| transcode.esm.html | Transcoding example using module |
| trim.html | Video trimming exmple |
| concatDemuxer.html | Video concat exmple |