working on some ionic 2 music player. I wanted a way to read media tags for a music file and i found musicmetadata to be well ok. Below is how its used according to the documentation:
var fs = require('fs');
var mm = require('musicmetadata');
// create a new parser from a node ReadStream
var parser = mm(fs.createReadStream('sample.mp3'), function (err, metadata) {
if (err) throw err;
console.log(metadata);
});
The problem here is fs.createReaderStream
throws an exception : webpack_require_i and i have no idea what it it. So i was wondering is there a way to get this working in ionic 2 or is there any other media tags reader out there that could work with ionic 2.
via marvin ralph
No comments:
Post a Comment