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/libav-jspi.wasm
CHANGED
|
Binary file
|
package/build/libav.wasm
CHANGED
|
Binary file
|
package/build/worker.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export type RemuxerInstanceOptions = {
|
|
|
81
81
|
length: number;
|
|
82
82
|
bufferSize: number;
|
|
83
83
|
audioStreamIndex?: number;
|
|
84
|
+
/** codec names the caller's browser accepts in an mp4; anything else is re-encoded to aac */
|
|
85
|
+
audioCodecs?: string[];
|
|
84
86
|
};
|
|
85
87
|
type ReadFunction = (offset: number, size: number) => Promise<{
|
|
86
88
|
resolved: ArrayBuffer;
|
|
@@ -216,11 +218,13 @@ type WASMVector<T> = {
|
|
|
216
218
|
delete: () => void;
|
|
217
219
|
};
|
|
218
220
|
declare const resolvers: {
|
|
219
|
-
makeRemuxer: ({ publicPath, length, bufferSize, audioStreamIndex }: {
|
|
221
|
+
makeRemuxer: ({ publicPath, length, bufferSize, audioStreamIndex, audioCodecs }: {
|
|
220
222
|
publicPath: string;
|
|
221
223
|
length: number;
|
|
222
224
|
bufferSize: number;
|
|
223
225
|
audioStreamIndex?: number;
|
|
226
|
+
/** codec names the caller's browser accepts in an mp4; anything else is re-encoded to aac */
|
|
227
|
+
audioCodecs?: string[];
|
|
224
228
|
}) => Promise<{
|
|
225
229
|
destroy: () => Promise<void>;
|
|
226
230
|
init: (read: ReadFunction) => Promise<{
|