Hy,
I have implemented audio streaming to node.js server from the browser. What I exactly did was this.
var startTimer = new Date().getTime();
At client side
var self = this;
navigator.getUserMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
navigator.getUserMedia({audio: true, video: false}, function (stream) {
var audioContext = window.AudioContext;
var context = new audioContext();
window.audioInput = context.createMediaStreamSource(stream);
var bufferSize = 2048;
var recorder = context.createScriptProcessor(bufferSize, 1, 1);
recorder.onaudioprocess = self.onAudioProcess.bind(self);
audioInput.connect(recorder);
recorder.connect(context.destination);
}, this.onAudioError);
I am sending the audio buffer using the socket.io and at server I use lame encoder to encode it to mp3.
Then I realized this doesn't work in IE and safari. So on a bit of research I was redirected here.
Also I have seen in other issues that I cannot record streams using this plugin. I am actually not recording it, instead streaming it to nodejs server. Will this actually work?
Hy,
I have implemented audio streaming to node.js server from the browser. What I exactly did was this.
var startTimer = new Date().getTime();
I am sending the audio buffer using the socket.io and at server I use lame encoder to encode it to mp3.
Then I realized this doesn't work in IE and safari. So on a bit of research I was redirected here.
Also I have seen in other issues that I cannot record streams using this plugin. I am actually not recording it, instead streaming it to nodejs server. Will this actually work?