CustomSource -> StreamSource

This commit is contained in:
Vanilagy
2026-05-24 15:48:01 +02:00
parent ef27d73405
commit 441eea38b9
5 changed files with 119 additions and 60 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { expect, test } from 'vitest';
import { Input } from '../../src/input.js';
import { FilePathSource, ReadableStreamSource, StreamSource } from '../../src/source.js';
import { FilePathSource, ReadableStreamSource, CustomSource } from '../../src/source.js';
import path from 'node:path';
import fs from 'node:fs';
import { Readable } from 'node:stream';
@@ -759,7 +759,7 @@ test('MPEG-TS partial reading', async () => {
let maxEnd = 0;
using input = new Input({
source: new StreamSource({
source: new CustomSource({
getSize: () => {
return buffer.byteLength;
},