peterel opened a new issue, #259:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/259
This is driving me nuts. Can someone please show me how to get the frames
from a video stream? I get the stream using the example, see below, and that
works well. But how do I go about getting each frame from that stream? Any help
or tip is very very very welcome!
```
navigator.mediaDevices.getUserMedia(constraints)
.then((stream) => {
console.log('getUserMedia.stream', stream);
console.log('getUserMedia.stream.getTracks', stream.getTracks());
console.log("Im streaming!!", stream);
var video = document.querySelector('video');
console.log("video element", video);
video.srcObject = stream;
video.onloadedmetadata = (e) => {
console.log("stream start");
video.play();
};
}).catch((err) => {
console.log('getUserMedia.error', err, err.stack);
});
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]