-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Chrome Version 92.0.4515.107 (Official Build) (x86_64) on macos #33
Comments
Does anyone know if this is on Chromium's bug tracker, or if it's a deprecation (planned or unplanned) or bug? |
Having the same issue. const readAsArrayBuffer = (blob: Blob) => {
return new Promise(resolve => {
const reader = new FileReader()
reader.readAsArrayBuffer(blob)
reader.onloadend = () => {
resolve(reader.result)
}
})
}
const injectMetaData = async (blob: Blob) => {
try {
const decoder = new Decoder()
const reader = new Reader()
reader.logging = false
reader.drop_default_duration = false
const buffer = (await readAsArrayBuffer(blob)) as ArrayBuffer
const elms = decoder.decode(buffer)
console.log("elms", elms)
elms.forEach(elm => {
reader.read(elm)
})
reader.stop()
const refinedMetadataBuf = tools.makeMetadataSeekable(reader.metadatas, reader.duration, reader.cues)
const body = buffer.slice(reader.metadataSize)
return new Blob([refinedMetadataBuf, body], { type: blob.type })
} catch (error) {
console.error(error)
}
} I got this from the log
Number 36 which has type and name is I don't know what is the correct way to solve this. I am filter the unknown and invalid type one out to bypass this issue for now. ...
let elms = decoder.decode(buffer)
const validEmlType = ["m", "u", "i", "f", "s", "8", "b", "d"] // This is from elm type of the lib
elms = elms?.filter(elm => validEmlType.includes(elm.type))
elms.forEach(elm => {
reader.read(elm)
})
reader.stop()
.... |
After further investigation, I suppose chrome change how is webm generated and start using Matroska Element 0x55b*. These elements are neither in schema.js in dependency package "matroska" nor in "node-ebml". I don't why there were ignored. I post an issue here oeuillot/node-matroska#8 In my case I use ts-ebml for the duration so, for now, I will do like @tonynguyenit18 |
Any progress here? are we just going to remove the data with unknown type? |
I've just created oeuillot/node-matroska#9 to update |
+1 |
Matroska v2.2.4 breaks ts-ebml and now gives wrong duration |
Hi,
Since I installed the last version of chrome on my mac (macos 11.4) decoding and reading file generate with MediaRecorder throw an exception: "No schema entry found for unknown"
An EBMLElement has unknown in schema.
I have made an exemple here. just start and stop recording.
https://stackblitz.com/edit/typescript-5rfmcf?file=index.ts
Perhaps it is a bug in Chrome but so far I don't find it in tracker.
Thanks
The text was updated successfully, but these errors were encountered: