Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-tune-trace
Advanced tools
Audio / Voice Recorder w/ Audio ogge for React using the Web Audio API
npm install --save react-tune-trace
import React, { Component } from 'react'
import AudioReactRecorder, { RecordState } from 'react-tune-trace'
class App extends Component {
constructor(props) {
super(props)
this.state = {
recordState: null
}
}
start = () => {
this.setState({
recordState: RecordState.START
})
}
stop = () => {
this.setState({
recordState: RecordState.STOP
})
}
//audioData contains blob and blobUrl
onStop = (audioData) => {
console.log('audioData', audioData)
}
render() {
const { recordState } = this.state
return (
<div>
<AudioReactRecorder state={recordState} onStop={this.onStop} />
<button onClick={this.start}>Start</button>
<button onClick={this.stop}>Stop</button>
</div>
)
}
}
Property name | Type | Default | Description |
---|---|---|---|
state | string | RecordState.NONE | RecordState.(NONE,START,STOP,PAUSE) |
type | string | audio/ogg | Ogg type support in this version |
backgroundColor | string | rgb(200, 200, 200) | Background color of the audio ogge / canvas |
foregroundColor | string | rgb(0, 0, 0) | Foreground color of the audio ogge / canvas |
canvasWidth | number,string | 500 | Canvas width (you can use css to make it responsive) |
canvasHeight | number,string | 300 | canvas height |
MIT © pariazar
FAQs
Audio / Voice Recorder for React
The npm package react-tune-trace receives a total of 0 weekly downloads. As such, react-tune-trace popularity was classified as not popular.
We found that react-tune-trace 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.