EBML stands for Extensible Binary Meta-Language and is some what of a binary version of XML. It's used for container formats like webm or mkv
npm install ebml --save
const ebml = require('./index.js');
const fs = require('fs');
const decoder = new ebml.Decoder();
decoder.on('data', function(chunk) {
console.log(chunk);
});
fs.readFile('media/test.webm', function(err, data) {
if (err)
throw err;
decoder.write(data);
});
Parsing should work. If it doesn't, please create an issue.
Thanks to @chrisprice we got an encoder!
MIT
(in alphabetical order)