Socket
Socket
Sign inDemoInstall

@chayns/react-audio-editor

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chayns/react-audio-editor

Tool to edit audio tracks.


Version published
Weekly downloads
3
increased by50%
Maintainers
3
Weekly downloads
 
Created
Source

chayns-audio-editor

The chayns-audio-editor allows the user to choose, edit and save an audio file.

Usage

You have to install this package with npm i -S chayns-audio-editor.

After this, you can than use the AudioEditor in your react component like in the following example:

import AudioEditor from 'chayns-audio-editor';

<Social
    <AudioEditor onRemove={console.log} onSave={console.log}/>
/>

Properties

The following properties can be set on the AudioEditor component:

PropertyDescriptionTypeDefault
fileInitial chosen file. If not set, user has the possibility to choose a file.Filenull
onSaveFunction which will be called after user has saved the audio file.functionFileSaver.saveAs
onRemoveFunction which will be called when user clicks on the delete Icon.functionconsole.log

Browser compatibility

The chayns-audio-editor has been developed with Google Chrome. For this, all features are working and there are no known issues.

BrowserMax playback rateKnown issues
Chrome 7216x-
Firefox 654x-
Safari 121xYou don't hear anything. The spectrum can't be shown because it's not allowed to start an audio player without a click.
Edge 171xDownloaded Files have no name
IE 11-IE don't supports the web audio API. You can only choose a mp3 file.
Chrome Mobile 7216xThe exported File has a bad quality.
Firefox Mobile 654xThe storage process does not end.
Safari Mobile1xOn iOS, you are not able to choose an audio file.

The maximum playback rate is used to generate the spectrum.

Development

  1. Install dependencies with npm i
  2. Start dev task with npm start
  3. Link in an other project with npm link chayns-audio-editor

Publish

  1. Commit all changes
  2. Bump version with
    • npm version patch to increase patch version
    • npm version minor to increase minor version
    • npm version major to increase major version
  3. Push your branch or branches and version tag.
  4. Publish with npm publish

Note: npm version [...] adds a git commit and a git tag

Keywords

FAQs

Package last updated on 02 Apr 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc