You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's the code that breaks (it's being used by many):
constinjectMetadata=async(blob)=>{constdecoder=newDecoder();constreader=newReader();reader.logging=false;reader.drop_default_duration=false;constbuffer=awaitreadAsArrayBuffer(blob);if(!buffer)thrownewError('could not inject metadata');// fix for chrome 92+ with mac. getting error https://github.com/legokichi/ts-ebml/issues/33constvalidEmlType=['m','u','i','f','s','8','b','d'];// This is from elm type of the libconstelms=decoder.decode(buffer)?.filter(elm=>validEmlType.includes(elm.type));elms.forEach((elm)=>{reader.read(elm);});reader.stop();constrefinedMetadataBuf=tools.makeMetadataSeekable(reader.metadatas,reader.duration,reader.cues,);constbody=buffer.slice(reader.metadataSize);returnnewBlob([refinedMetadataBuf,body],{type: blob.type});};
so there is no specific error, but the record duration is totally wrong.
The text was updated successfully, but these errors were encountered:
while upgrading my app, and using ts-ebml in order to extract the record time from buffer, I got the wrong time.
not 100% sure what went wrong, but it's definitely due to moving from 2.2.3 to 2.2.4 of matroska.
https://www.npmjs.com/package/matroska/v/2.2.4
That's the code that breaks (it's being used by many):
so there is no specific error, but the record duration is totally wrong.
The text was updated successfully, but these errors were encountered: