mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Remove createInputFrom, changed meaning of PathedSource, add CustomPathedSource
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user