From b98118756af15e3817b053df89ecc27189d997dc Mon Sep 17 00:00:00 2001 From: Banou Date: Sat, 17 Feb 2024 22:14:27 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9Drename=20transmuxer=20to=20?= =?UTF-8?q?remuxer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/index.ts | 2 +- src/test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2171820..b1d82ba 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # LibAV WASM -This library can be used to transmux from MKV -> MP4, it could technically do any transmux but i haven't had the need for it, create an issue if you'd like it. +This library can be used to remux from MKV -> MP4, it could technically do any remux but i haven't had the need for it, create an issue if you'd like it. Basic usage ```ts -const remuxer = await makeTransmuxer({ +const remuxer = await makeRemuxer({ // the path at which the wasm file is getting served publicPath: new URL('/dist/', new URL(import.meta.url).origin).toString(), // url of the worker file of libavWASM diff --git a/src/index.ts b/src/index.ts index b5754a2..7717ebe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,7 +57,7 @@ const convertTimestamp = (ms: number) => .slice(11, 22) .replace(/^00/, '0') -export const makeTransmuxer = async ({ +export const makeRemuxer = async ({ publicPath, workerUrl, workerOptions, diff --git a/src/test.ts b/src/test.ts index 72520b4..98cc35d 100644 --- a/src/test.ts +++ b/src/test.ts @@ -2,7 +2,7 @@ import PQueue from 'p-queue' import { queuedDebounceWithLastCall, toBufferedStream, toStreamChunkSize } from './utils' -import { makeTransmuxer } from '.' +import { makeRemuxer } from '.' import pDebounce from 'p-debounce' type Chunk = { @@ -82,7 +82,7 @@ fetch(VIDEO_URL, { headers: { Range: `bytes=0-1` } }) let slow = false - const remuxer = await makeTransmuxer({ + const remuxer = await makeRemuxer({ publicPath: new URL('/dist/', new URL(import.meta.url).origin).toString(), workerUrl, bufferSize: BUFFER_SIZE,