Answer the question
In order to leave comments, you need to log in
How to transfer the video taken from the webcam to the socket / back to the html page?
There is a socket (socket.io) on nodeJs. The task is to take the stream (video) from the getUserMedia() function and pass it to the socket. Then back from the socket to the html page. Here is the code to make it clearer:
navigator.webkitGetUserMedia({video:true,audio: false},function (myStream){
//передать myStream в сокет
}, function (error) {
console.log(error);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question