libav-wasm 0.8.5 → 0.8.7
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/build/index.d.ts +17 -0
- package/build/index.js +769 -562
- package/build/libav-jspi.wasm +0 -0
- package/build/libav.wasm +0 -0
- package/build/worker.d.ts +5 -1
- package/build/worker.js +1858 -1695
- package/package.json +7 -2
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export * from './utils';
|
|
2
|
+
/**
|
|
3
|
+
* Which audio codecs this browser will accept in an mp4, asked rather than assumed.
|
|
4
|
+
*
|
|
5
|
+
* Transcoding costs the majority of a seek on the files that need it, and it exists only because a
|
|
6
|
+
* browser will not take the codec. That answer is not fixed: the same Chrome takes ec-3 on Windows and
|
|
7
|
+
* refuses it on Linux, so a hardcoded list transcodes for everyone to satisfy the strictest browser.
|
|
8
|
+
*
|
|
9
|
+
* Narrows rather than widens on any doubt. A browser handed a codec it cannot decode fails as silent
|
|
10
|
+
* audio, not as an error, which is far worse than a transcode that was not needed.
|
|
11
|
+
*/
|
|
12
|
+
export declare const supportedAudioCodecs: () => string[];
|
|
2
13
|
export type MakeTransmuxerOptions = {
|
|
3
14
|
/** Path that will be used to locate the .wasm file imported from the worker */
|
|
4
15
|
publicPath: string;
|
|
@@ -20,6 +31,12 @@ export type MakeTransmuxerOptions = {
|
|
|
20
31
|
* rather than cloning measured 15% off a session, since the whole payload crosses the hop every read.
|
|
21
32
|
*/
|
|
22
33
|
transferReads?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Audio codecs to pass through instead of re-encoding, by the names `supportedAudioCodecs` returns.
|
|
36
|
+
* Defaults to asking this browser. Pass a narrower list to override, never a wider one than the
|
|
37
|
+
* playback target can decode.
|
|
38
|
+
*/
|
|
39
|
+
audioCodecs?: string[];
|
|
23
40
|
};
|
|
24
41
|
export declare const makeRemuxer: (options: MakeTransmuxerOptions) => Promise<{
|
|
25
42
|
worker: Worker;
|