Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
electron-audio-conversion
Advanced tools
A promise-based library for loading audio files into HTML5 audio element in Electron. Uses the dataurl, id3 and mp3duration libraries.
A promise-based library for loading audio files into HTML5 audio. Uses the dataurl, id3 and mp3duration libraries.
npm install electron-audio-conversion
This library comes with 4 functions:
getSongDuration(filePath)
-- Takes a filepath and returns the duration of that song.
getSongTags(track)
-- Takes a track and returns the title, album and artist for that track.
createSongObject(filePath)
-- Takes a filepath, creates a new object, calls getSongDuration
and getSongTags
and returns a promise with a song object that has the track, title, album and artist.
createSongUri(filePath, mimetype)
-- Takes a filepath and creates a dataUri for that file. This dataUri is handed over to the HTML5 audio element to play the song.
In practice you'll likely only ever need createSongObject
and createSongUri
but you have access to the others if you need them.
This library makes it easier to pull audio files from the local file system and play them in the browser. We built this library to help with an Electron audio-player app and needed a way to create a playlist of song objects and then be able to make dataurl's on the fly for those songs as they're played.
FAQs
A promise-based library for loading audio files into HTML5 audio element in Electron. Uses the dataurl, id3 and mp3duration libraries.
We found that electron-audio-conversion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.