webm-muxer
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -7,6 +7,6 @@ /** | ||
* Specifies where the muxed WebM file is written to. | ||
* | ||
* | ||
* When using `'buffer'`, the muxed file is simply written to a buffer in memory, which is then returned by the | ||
* muxer's `finalize` method. | ||
* | ||
* | ||
* If the target is of type `FileSystemWritableFileStream`, the file will be written directly to disk as it is being | ||
@@ -75,3 +75,3 @@ * muxed. The benefit of this target is the ability to write out very large files, easily exceeding the RAM of the | ||
constructor(options: WebMMuxerOptions); | ||
/** | ||
@@ -84,3 +84,3 @@ * Adds a new, encoded video chunk to the WebM file. | ||
*/ | ||
addVideoChunk(chunk: EncodedVideoChunk, meta: EncodedVideoChunkMetadata, timestamp?: number): void; | ||
addVideoChunk(chunk: EncodedVideoChunk, meta: EncodedVideoChunkMetadata, timestamp?: number): void; | ||
/** | ||
@@ -103,3 +103,8 @@ * Adds a new, encoded audio chunk to the WebM file. | ||
*/ | ||
addVideoChunkRaw(data: Uint8Array, type: 'key' | 'delta', timestamp: number, meta?: EncodedVideoChunkMetadata): void; | ||
addVideoChunkRaw( | ||
data: Uint8Array, | ||
type: 'key' | 'delta', | ||
timestamp: number, | ||
meta?: EncodedVideoChunkMetadata | ||
): void; | ||
/** | ||
@@ -113,3 +118,8 @@ * Adds a raw audio chunk to the WebM file. This method should be used when the encoded audio is not obtained | ||
*/ | ||
addAudioChunkRaw(data: Uint8Array, type: 'key' | 'delta', timestamp: number, meta?: EncodedAudioChunkMetadata): void; | ||
addAudioChunkRaw( | ||
data: Uint8Array, | ||
type: 'key' | 'delta', | ||
timestamp: number, | ||
meta?: EncodedAudioChunkMetadata | ||
): void; | ||
@@ -116,0 +126,0 @@ /** |
{ | ||
"name": "webm-muxer", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "WebM multiplexer in pure TypeScript for use with WebCodecs API, video & audio.", | ||
@@ -27,6 +27,18 @@ "main": "./build/webm-muxer.js", | ||
"@types/node": "^18.11.3", | ||
"@typescript-eslint/eslint-plugin": "^5.48.1", | ||
"@typescript-eslint/parser": "^5.48.1", | ||
"esbuild": "^0.15.12", | ||
"eslint": "^8.32.0", | ||
"typescript": "^4.8.4" | ||
}, | ||
"keywords": ["webm", "muxer", "muxing", "multiplexer", "video", "audio", "media", "webcodecs"] | ||
"keywords": [ | ||
"webm", | ||
"muxer", | ||
"muxing", | ||
"multiplexer", | ||
"video", | ||
"audio", | ||
"media", | ||
"webcodecs" | ||
] | ||
} |
# webm-muxer - JavaScript WebM multiplexer | ||
[![](https://img.shields.io/npm/v/webm-muxer)](https://www.npmjs.com/package/webm-muxer) | ||
[![](https://img.shields.io/bundlephobia/minzip/webm-muxer)](https://bundlephobia.com/package/webm-muxer@1.0.7) | ||
[![](https://img.shields.io/bundlephobia/minzip/webm-muxer)](https://bundlephobia.com/package/webm-muxer) | ||
@@ -6,0 +6,0 @@ The WebCodecs API provides low-level access to media codecs, but provides no way of actually packaging (multiplexing) |
50308
6
957
6