forked from aadsm/node-id3
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Do not provide duration of audio #152
Comments
Give mp3 file as source to audio element. Get the audio object's duration information. I think I'll do it this way too :) |
Try music-metadata instead. |
pass object
|
Try music-metadata instead: npm uninstall musicmetadata
npm install music-metadata const mm = require('music-metadata');
mm.parseFile('sample.mp3', {duration: true})
.then( metadata => {
console.log(`duration = ${metadata.format.duration} milliseconds`)
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this plugin always provide duration as 0. Is there a way to get the duration?
The text was updated successfully, but these errors were encountered: