Seek issues fixed

This commit is contained in:
killer069
2022-01-04 15:13:27 +05:30
parent 59f3829e27
commit ddcb71c018
2 changed files with 12 additions and 5 deletions

View File

@@ -131,6 +131,11 @@ export class WebmSeeker extends Duplex {
if (ebmlID.name === 'ebml') this.headfound = true;
else return new Error('Failed to find EBML ID at start of stream.');
}
if(ebmlID.name === "cluster") {
this.emit("headComplete")
this.cursor = this.chunk.length
break;
}
const data = this.chunk.slice(
this.cursor + this.data_size,
this.cursor + this.data_size + this.data_length