Comments (5)
Is it possible you're calling stopRecording
before startWebRecorder()
Promise fulfilled?
I'm not waiting for the initWorker promise, how would i add that to the start function?
You may make yout buttons disabled by default and activate with e.g.
startWebRecorder().then(() => {
this.setState({recording: true});
});
and then use disabled={!this.state.recording}
for your stop button.
You need to init worker only once btw, don't create a new one for every record. Probably API should disallow this...
from vmsg.
Sounds like race condition between init
and stop
messages in a Worker. Are you waiting for the initWorker()
Promise before starting the recording? Could you please show your code?
from vmsg.
Thanks. This is from a Redux action.
import vmsg from 'vmsg'
const recorder = new vmsg.Recorder({
wasmURL: "https://unpkg.com/[email protected]/vmsg.wasm"
})
startWebRecorder()
const startWebRecorder = async () => {
await recorder.initAudio()
await recorder.initWorker()
recorder.startRecording()
}
Then on stop
recorder.stopRecording().then(res => upload(res, type, id))
from vmsg.
I'm not waiting for the initWorker promise, how would i add that to the start function?
from vmsg.
thanks I've done a check to see if it's been initialised and it works better
from vmsg.
Related Issues (20)
- First ~6 seconds have play no sound in chrome HOT 1
- TypeError: Failed to execute 'compile' on 'WebAssembly': HTTP status code is not ok HOT 1
- Bitrate HOT 1
- VMSG Architecture HOT 1
- Encoding in wav format HOT 1
- Error: getUserMedia is not implemented in this browser on Mac OS 10.15
- Occasional garbled audio recording HOT 7
- Developer instructions - clarification please HOT 1
- Poor quality on iOS HOT 1
- Ability to specify vbr-quality HOT 1
- Blob comes back null after stop recording React
- Clicking/clipping and bad audio quality in demo. HOT 10
- Tag new release? HOT 1
- Failed to execute close on AudioContext HOT 2
- How to recompile vmsg.wasm? HOT 2
- Feature: Option to specify HTML / CSS template
- missing audio initialization HOT 2
- Changing VBR methods to CBR throws error
- Audio quality issues 48k files
- Zero blob size, comming on ios mobile chrome/safari
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmsg.