Remove createInputFrom, changed meaning of PathedSource, add CustomPathedSource

This commit is contained in:
Vanilagy
2026-04-21 13:22:10 +02:00
parent d12c48562c
commit 2b3e5f45c6
16 changed files with 349 additions and 428 deletions
+4 -4
View File
@@ -2,7 +2,7 @@ import { ALL_FORMATS } from '../../src/input-format.js';
import { Input } from '../../src/input.js';
import { AdtsOutputFormat, HlsOutputFormat, Mp4OutputFormat, MpegTsOutputFormat } from '../../src/output-format.js';
import { Output, OutputTrackGroup } from '../../src/output.js';
import { BufferSource, PathedSource, UrlSource } from '../../src/source.js';
import { BufferSource, CustomPathedSource, UrlSource } from '../../src/source.js';
import { expect, test } from 'vitest';
import { BufferTarget, PathedTarget } from '../../src/target.js';
import { Conversion } from '../../src/conversion.js';
@@ -176,7 +176,7 @@ test('HLS track assignability is kept #1', async () => {
using input = new Input({
formats: ALL_FORMATS,
source: new PathedSource(
source: new CustomPathedSource(
'master.m3u8',
({ path }) => new BufferSource(files.get(path)!),
),
@@ -255,7 +255,7 @@ test('HLS track assignability is kept #2', async () => {
using input = new Input({
formats: ALL_FORMATS,
source: new PathedSource(
source: new CustomPathedSource(
'master.m3u8',
({ path }) => new BufferSource(files.get(path)!),
),
@@ -334,7 +334,7 @@ test('HLS track assignability can be overridden', async () => {
using input = new Input({
formats: ALL_FORMATS,
source: new PathedSource(
source: new CustomPathedSource(
'master.m3u8',
({ path }) => new BufferSource(files.get(path)!),
),