mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 19:33:51 +02:00
BIG cursor progress
- Add extensive tests for packet cursor, sample cursor, and call serialization - Major PacketCursor refactor - Add PacketReader - Many SampleCursor fixes, harden the behavior - Typo fixes and various other small things
This commit is contained in:
+45
-2
@@ -23,12 +23,55 @@
|
||||
console.log(await cursor.next());
|
||||
*/
|
||||
|
||||
//console.log(await cursor.seekTo(4.9))
|
||||
//console.log(await cursor.seekTo(5.1))
|
||||
//return;
|
||||
|
||||
const mh = [
|
||||
cursor.seekTo(2.10),
|
||||
cursor.seekTo(5),
|
||||
cursor.seekTo(2.05),
|
||||
//cursor.seekTo(4.9),
|
||||
//cursor.seekTo(4.9),
|
||||
//cursor.seekTo(4.9),
|
||||
//cursor.seekTo(4.9),
|
||||
//cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.next(),
|
||||
cursor.close(),
|
||||
//cursor.next(),
|
||||
//cursor.next(),
|
||||
//cursor.next(),
|
||||
//cursor.next(),
|
||||
//cursor.close(),
|
||||
//cursor.seekTo(2.10),
|
||||
//cursor.seekTo(5),
|
||||
//cursor.close(),
|
||||
//cursor.seekTo(2.00),
|
||||
];
|
||||
|
||||
/*
|
||||
for (const yo of mh) {
|
||||
const samp = await yo;
|
||||
console.log(samp)
|
||||
samp?.close();
|
||||
}
|
||||
|
||||
console.log("done")
|
||||
*/
|
||||
|
||||
console.log(await Promise.all(mh));
|
||||
|
||||
//console.log(await cursor.seekTo(2.05));
|
||||
|
||||
Reference in New Issue
Block a user