You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
264 B

var mp2t, metadataStream;
mp2t = require('../lib/m2ts');
metadataStream = new mp2t.MetadataStream();
self.addEventListener('message', function(e) {
metadataStream.on('data', function(data) {
self.postMessage(data);
});
metadataStream.push(e.data);
});