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
@@ -28,10 +28,10 @@
return;
*/
const manifest = Mediabunny.createInputFrom(
'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8',
Mediabunny.ALL_FORMATS,
);
const manifest = new Mediabunny.Input({
source: new Mediabunny.UrlSource('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'),
formats: Mediabunny.ALL_FORMATS,
});
const tracks = await manifest.getTracks();
console.log(tracks);