Hi there
Could anybody give a clue on how to record a video (with sound) and send file or stream to a server side?
I'm trying to use
var streamRecorder;
var webcamstream;
navigator.getUserMedia({ video: true, audio: true }, handleVideo, videoError);
where handleVideo is as following:
function handleVideo(stream) { video.src = window.URL.createObjectURL(stream); webcamstream = stream; }
and certain button on the Web form starts recording:
function startRecording() { streamRecorder = webcamstream.record(); //setTimeout(stopRecording, 10000); }
This is taken from one of the numerous examples on Internet. The problem of a code above that the webcamstream has no method record(). How come? What do I do wrong?
Thanks.