[lib.audio-manager] chromium/webkit fix + revert to MediaRecorder + removed debugs
This commit is contained in:
parent
04c6e37527
commit
baf7804857
|
@ -191,8 +191,6 @@ export default class AudioManager{
|
|||
|
||||
/* (1) Bind audio stream
|
||||
---------------------------------------------------------*/
|
||||
console.log('BINDING', _stream);
|
||||
|
||||
/* (1) bind our audio stream to our source */
|
||||
this.input = this.ctx.createMediaStreamSource(_stream);
|
||||
|
||||
|
@ -424,20 +422,20 @@ export default class AudioManager{
|
|||
/* (2) Set our streaming binding function */
|
||||
let streaming_binding = function(stream){
|
||||
|
||||
// this.recorder = new MediaRecorder(stream);
|
||||
this.recorder = new MediaRecorder(stream);
|
||||
|
||||
this.bindRecorderStream(stream);
|
||||
|
||||
// this.recorder.onstart = () => console.warn('[audio] recording');
|
||||
this.recorder.onstart = () => console.warn('[audio] recording');
|
||||
|
||||
// this.recorder.onstop = () => {
|
||||
// this.recorder.stream.getTracks().map( t => t.stop() );
|
||||
// this.recorder = null;
|
||||
// console.warn('[audio] stopped recording');
|
||||
// };
|
||||
this.recorder.onstop = () => {
|
||||
this.recorder.stream.getTracks().map( t => t.stop() );
|
||||
this.recorder = null;
|
||||
console.warn('[audio] stopped recording');
|
||||
};
|
||||
|
||||
// // start recording
|
||||
// this.recorder.start();
|
||||
// start recording
|
||||
this.recorder.start();
|
||||
|
||||
}.bind(this);
|
||||
|
||||
|
|
Loading…
Reference in New Issue