Is it possible to add image to MediaStream object that would be over video stream from camera? But not as another layer but like embebed to stream, so if I pass the stream object to some peer it would also have that embebed image.
var constraints = { audio: true, video: true };
navigator.mediaDevices.getUserMedia(constraints)
.then(function(mediaStream) {
var video = document.querySelector('video');
video.srcObject = mediaStream;
video.onloadedmetadata = function(e) {
video.play();
};
}).catch(function(err) { console.log(err.name + ": " + err.message); });
As above I just pass mediaStream directly to video element, but can I manipulate stream to add some text or images?