discord-baymax-bot/node_modules/ebml/example.js
2017-03-23 23:52:08 -05:00

14 lines
273 B
JavaScript

var ebml = require('./index.js');
var fs = require('fs');
var 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);
});