我有从返回的MediaStream对象,可以在自己的屏幕上显示它。
问题是,我不知道如何发送/管道/流/* MediaStream从A点到NodeJS使用socket.io到B点。
我现在的代码是:
// Cámara
if (navigator.getUserMedia) {
navigator.getUserMedia({audio: true, video: true}, function(stream) {
video.src = URL.createObjectURL(stream) || window.URL.createObjectURL(stream);
webcamstream = stream;
}, onVideoFail);
} else {
alert ('failed');
}
});
function onVideoFail(e) {
console.log('webcam fail!', e);
};我需要一种方法来使这个流不断地使用NodeJS发送到其他用户。
发布于 2014-09-01 05:43:44
- the streaming part (RTP/RTCP), and corresponding packet loss cancellation
- the bandwidth adaptation
- the encryption (DTLS)
- the media engine (jitter correction, …)通过webRTC。
发布于 2021-01-07 16:17:41
这可能有点晚了,但是现在有一个名为wrtc/node的库-webrtc。用那个!https://github.com/node-webrtc/node-webrtc
https://stackoverflow.com/questions/25587767
复制相似问题