@mediabunny/prores 1.49.0 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/bundles/mediabunny-prores.js +193 -209
- package/dist/bundles/mediabunny-prores.min.js +63 -62
- package/dist/bundles/mediabunny-prores.min.mjs +63 -62
- package/dist/bundles/mediabunny-prores.mjs +193 -197
- package/dist/modules/src/index.d.ts.map +1 -1
- package/dist/modules/src/index.js +12 -0
- package/dist/modules/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -6
- package/src/index.ts +17 -0
package/README.md
CHANGED
|
@@ -28,6 +28,25 @@ Alternatively, directly include them using a script tag:
|
|
|
28
28
|
|
|
29
29
|
This will expose the global objects `Mediabunny` and `MediabunnyProres`. Use `mediabunny-prores.d.ts` to provide types for these globals. You can download the built distribution files from the [releases page](https://github.com/Vanilagy/mediabunny/releases).
|
|
30
30
|
|
|
31
|
+
## Setup
|
|
32
|
+
|
|
33
|
+
`@mediabunny/prores` can make use of shared-memory multithreading to achieve maximum performance. To enable this in browsers, your website must be cross-origin isolated by setting the following response headers:
|
|
34
|
+
```
|
|
35
|
+
Cross-Origin-Opener-Policy: same-origin
|
|
36
|
+
Cross-Origin-Embedder-Policy: require-corp
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Alternatively, you can use:
|
|
40
|
+
```
|
|
41
|
+
Cross-Origin-Opener-Policy: same-origin
|
|
42
|
+
Cross-Origin-Embedder-Policy: credentialless
|
|
43
|
+
```
|
|
44
|
+
which is generally more permissive but is not supported in Safari (of course).
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
If you cannot enable cross-origin isolation, `@mediabunny/prores` will fall back to a slower multithreading algorithm.
|
|
49
|
+
|
|
31
50
|
## Usage
|
|
32
51
|
|
|
33
52
|
```ts
|