Comparing version 1.0.4 to 1.0.5
@@ -63,2 +63,3 @@ /** | ||
/** The file data will be written into a single large buffer, which is then stored in `buffer`. */ | ||
declare class ArrayBufferTarget { | ||
@@ -68,2 +69,10 @@ buffer: ArrayBuffer; | ||
/** | ||
* This target defines callbacks that will get called whenever there is new data available - this is useful if | ||
* you want to stream the data, e.g. pipe it somewhere else. | ||
* | ||
* When using `chunked: true` in the options, data created by the muxer will first be accumulated and only written out | ||
* once it has reached sufficient size (~16 MB). This is useful for reducing the total amount of writes, at the cost of | ||
* latency. | ||
*/ | ||
declare class StreamTarget { | ||
@@ -77,2 +86,7 @@ constructor( | ||
/** | ||
* This is essentially a wrapper around `StreamTarget` with the intention of simplifying the use of this library with | ||
* the File System Access API. Writing the file directly to disk as it's being created comes with many benefits, such as | ||
* creating files way larger than the available RAM. | ||
*/ | ||
declare class FileSystemWritableFileStreamTarget { | ||
@@ -79,0 +93,0 @@ constructor(stream: FileSystemWritableFileStream); |
@@ -883,2 +883,3 @@ "use strict"; | ||
} | ||
/** Finalizes the file, making it ready for use. Must be called after all video and audio chunks have been added. */ | ||
finalize() { | ||
@@ -897,2 +898,3 @@ if (__privateGet(this, _videoTrack)) | ||
__privateGet(this, _writer).finalize(); | ||
__privateSet(this, _finalized, true); | ||
} | ||
@@ -899,0 +901,0 @@ }; |
{ | ||
"name": "mp4-muxer", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "MP4 multiplexer in pure TypeScript with support for WebCodecs API, video & audio.", | ||
@@ -5,0 +5,0 @@ "main": "./build/mp4-muxer.js", |
56516
1228