You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to provide a live streaming to the user through this?
I've tried the following code
var Mic = require('node-microphone');
var mic = new Mic();
app.get('/testmic',function(req,res) {
var micStream = mic.startRecording();
micStream.pipe(res);
});
when I directly pointed to this address (localhost:4000/testmic) the stream is getting downloaded as some file.
But I want it such that when I assign this url to a audio src attribute in HTML5 audio element, I should be able to listen to the stream.
Is it possible? If yes, where have I done the mistake?
The text was updated successfully, but these errors were encountered:
Hi @naveennamani, sorry I was pretty inactive.
Yes this is possible, but your browser interprets the stream as a download. You will need some Client (HTML/Javascript) Parts to realize that. However this would be out of scope for this module, so I will close this issue.
Is it possible to provide a live streaming to the user through this?
I've tried the following code
when I directly pointed to this address (localhost:4000/testmic) the stream is getting downloaded as some file.
But I want it such that when I assign this url to a audio src attribute in HTML5 audio element, I should be able to listen to the stream.
Is it possible? If yes, where have I done the mistake?
The text was updated successfully, but these errors were encountered: