mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Add support for SAMPLE-AES and SAMPLE-AES-CTR decryption, add "Common Encryption" support to ISOBMFF demuxer, add InputFormatOptions, rewrite ISOBMFF track codec resolution
This commit is contained in:
+10
-2
@@ -28,10 +28,17 @@
|
||||
return;
|
||||
*/
|
||||
|
||||
const manifest = new Mediabunny.Input({
|
||||
source: new Mediabunny.UrlSource('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'),
|
||||
const input = new Mediabunny.Input({
|
||||
source: new Mediabunny.UrlSource('https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine-hls/hls.m3u8'),
|
||||
formats: Mediabunny.ALL_FORMATS,
|
||||
});
|
||||
|
||||
const videoTrack = await input.getPrimaryVideoTrack();
|
||||
const sink = new Mediabunny.EncodedPacketSink(videoTrack);
|
||||
console.log(await sink.getFirstPacket());
|
||||
|
||||
/*
|
||||
return
|
||||
|
||||
const tracks = await manifest.getTracks();
|
||||
console.log(tracks);
|
||||
@@ -64,6 +71,7 @@
|
||||
console.log(await videoTrack.computeDuration({ skipLiveWait: true }));
|
||||
|
||||
manifest.dispose()
|
||||
*/
|
||||
|
||||
/*
|
||||
let last = -Infinity;
|
||||
|
||||
Reference in New Issue
Block a user