Comments (6)
Good point. Do you think it would be better to wait until all dataAvailable events are completed before publishing 'stop' or adding another event would be more appropriate? My feeling is to push the stop event until all dataAvailable events are completed.
Another possibility is If the server is reading the ogg stream, the last page will contain a final page header indicator, and the stream could be terminated from the server side.
from opus-recorder.
Could wait to publish 'stop'. My feeling is since it gets published pretty much immediately, it's not so useful currently. My implementation necessitates changing the blobs emitted by recorderjs into base64 and back into a buffer on the server. The header solution might work well, for me, as long as base64 stuff doesn't interfere with it.
from opus-recorder.
Check out my branch stop-event with commit 282bcdd and tell me if it does the job.
from opus-recorder.
That works perfectly from what I can tell. My problem is now off topic, there isn't any way to synchronously convert Blob to base64 so I'll need to finagle with the stop event and what my program does after it is triggered. I hadn't taken that into account.
from opus-recorder.
If you do recorder.worker.addEventLisener("message", function(typedArray){...}) you will get the raw array buffer instead of a blob. You can then convert easily to base64.
http://stackoverflow.com/questions/9267899/arraybuffer-to-base64-encoded-string
from opus-recorder.
Merged fix.
from opus-recorder.
Related Issues (20)
- How to use with Vite? HOT 6
- The first recording is not saved in Safari on IOS 15.1 HOT 1
- Robotic, torn audio on IOS 15.1 HOT 3
- Issue while using decoder with React application HOT 11
- Recorder output file size too small - Vue.js HOT 4
- building and running on windows 10 HOT 4
- Error running waveRecorder.html example HOT 3
- using waveform-playlist with opus-recorder HOT 1
- Uncaught TypeError: Cannot read properties of undefined (reading 'length')
- Not working with Vite + Vue 3
- wasm streaming compile failed: TypeError: Could not download wasm module falling back to ArrayBuffer instantiation how can i resolve this issue ? HOT 3
- Convert 16 bit signed int to 32 bit float HOT 8
- Audio distorted after 30 seconds HOT 6
- few seconds of recording are missing at the beginning (especially on IOS) HOT 1
- Play pages real-time HOT 2
- ondataavailable not fired with waveWorker
- TypeScript definitions HOT 1
- Opus Player
- Is it possible to Decode two audio sources HOT 4
- Error webassembly.compile HOT 1
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 opus-recorder.