Re: [mediacapture-image] Faster MediaStream ImageCapture.takePhoto

If you want the stream of video (encoded), use a MediaStreamRecorder.
If you want to access the data of every frame, I think you are going to need a fairly hefty amount of CPU; the canvas solution is probably the faster one - I see you're asking for 25 fps; did you get that in practice?
TakePhoto is supposed to get you an encoded image, so will spend time re-encoding the image into your desired format; that might be part of the extra overhead.

Still 200 ms to encode a frame is a fair chunk of time, if correctly measured. How did you measure it?


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/197#issuecomment-357549367 using your GitHub account

Received on Sunday, 14 January 2018 22:48:14 UTC