libav-wasm 0.8.6 → 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.
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<{