- From: Michal via GitHub <sysbot+gh@w3.org>
- Date: Sun, 14 Jan 2018 23:07:20 +0000
- To: public-media-capture-logs@w3.org
@alvestrand It would be cool to have something like this though: ``` stream // MediaStream or CaptureImage(MediaStream) .readStream(blob => { // blob or even nodejs buffer I am not sure how would that work in web environment toBuffer(blob, function (err, buffer) { if (err) throw err; // TODO: Do some magic with nodejs buffer }); }) .catch(error => console.error('takePhoto() error:', error)); ``` By the way I used `console.time` and `console.end` to measure the performance. -- GitHub Notification of comment by developer239 Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/197#issuecomment-357550590 using your GitHub account
Received on Sunday, 14 January 2018 23:07:23 UTC