Comments (7)
Here is how to get ondataavailable
event fired only on a button click:
mediaRecorder.start(999999999999999); // longest possible interval
document.getElementById('stop-recording').onclick = function() {
mediaRecorder.stop(); // stop on button click
};
E.g. http://stackoverflow.com/a/32264996/552182
BTW, silence detection can be added as an optional feature. E.g.
mediaRecorder.recorderType = StereoAudioRecorder; // force WebAudio for Edge/Firefox/Chrome
mediaRecorder.skipSilentAudioBuffers = true;
// or
mediaRecorder.dontRecordOnSilence = true;
from mediastreamrecorder.
Any updates about silence detector?
from mediastreamrecorder.
Any hints how to achieve this?
from mediastreamrecorder.
Silence detection feature is not added yet. BTW, yep, we can fire ondataavailable
on detecting silence.
from mediastreamrecorder.
How would we go about using ondataavailable to detect silences?
from mediastreamrecorder.
What I meant was to make the blobs available when silence is detected - but thanks for the reply. I'll look into the dontRecordOnSilence option and modify the code accordingly.
from mediastreamrecorder.
you can use the onmute event to detect silence. But this will work only if it is completely silent and no data is available from the recording devices.
stream.getVideoTracks()[0].onmute = function() { //TODO : Do something };
from mediastreamrecorder.
Related Issues (20)
- ondataavailable not being called HOT 2
- Allow receiving of ArrayBuffer instead of blobs
- 'onstart' event is not implemented
- how to record the sound of bluetooth headset
- Save recording as MPEG-TS HOT 3
- No MediaRecorder handler can be created HOT 2
- Very high CPU utilization on chrome version 77.X HOT 2
- How to record the system sound or the other party's voice
- Audio Channels constraint
- Float32 to Int16 in StereoAudioRecorderHelper.js
- why I can't save my record file,it's downloaded,but cant play in my player but the bolb link can play in browser HOT 2
- streams with audiotracks only are not recorded and give any data on ondataavailable event HOT 3
- Example of how to record the screen? HOT 1
- MultiStreamRecorder with 1 audio only and 1 video stream results in poor video quality (low resolution) HOT 1
- Deprecation: ScriptProcessorNode
- I want to open two (or more) screens with different sources.
- ERROR TypeError: Failed to construct 'MediaRecorder': parameter 1 is not of type 'MediaStream'.
- exact sync of video and audio HOT 1
- Get audio blob on demand explicitly.
- gif chrome
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 mediastreamrecorder.