Git Product home page Git Product logo

mp3-duration's People

Contributors

ddsol avatar junoatwork avatar jvandenaardweg avatar mycoboco avatar yss14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mp3-duration's Issues

usage inTypescript

How to use this module in typescript ? I got the following error when I imported mp3-duration in this way:
import * as mp3 from 'mp3-duration' Error: expecting a function but got [object Undefined]

How can I import the function directly ? Are there any methods to import from mp3-duration to get the duration of an mp3 file?

exception thrown for a broken header

One of my mp3 files has a broken header whose MPEG Audio version ID is 1, and mp3-duration throws an exception:

TypeError: Cannot read property '14' of undefined

because there is no elements for VxLn in the bitRates object.

How about adding keys for VxLn as for V1Lx and V2Lx?

(I've already done it on my forked version, and can make a PR if you think my fix is okay.)

npm3 build failed

Using suspend version 0.6.1 results in npm3 build fail.
Please update it to 0.7.0

Error: Cannot find module '../node_modules/promise/lib/es6-extensions'
at Function.Module._resolveFilename (module.js:327:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:355:17)
at require (internal/module.js:13:17)

Unable to retrieve external assets

I was unable to get this working with any external assets. Please let me know if this is possible or what the issue might be. The error is :
"ENOENT: no such file or directory, open 'http://www.mfiles.co.uk/mp3-downloads/purcell-funeral-music-for-queen-mary.mp3'"

mp3Duration('http://www.mfiles.co.uk/mp3-downloads/purcell-funeral-music-for-queen-mary.mp3', function (err, duration) {
  if (err) return console.log(err.message);
  console.log('Your file is ' + duration + ' seconds long');
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.