rico345100 / react-multimedia-capture

react-multimedia-capture is Multimedia capturing module via React, using HTML5 MediaDevice and MediaRecorder API
49 stars 14 forks source link

Preview image before record? #12

Closed fedeevilla closed 5 years ago

fedeevilla commented 5 years ago

Hello, I have a question!

Is there any possibility to preview the image before record? I don't know how do it.

rico345100 commented 5 years ago

Maybe this will help: https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Image_Capture_API

However it could be not part of this module.

fedeevilla commented 5 years ago

Hello, thanks, but why not? It is important to preview an image before recording..

I tried with this but fails on close. Webcam's Led isn't turn off. Do you have any idea? Thanks again.

rico345100 commented 5 years ago

Well, that could be important but taking snapshot of mediastream is not part of this module.

fedeevilla commented 5 years ago

I think I don't explain this well. Is there any way to show webcam without record?

rico345100 commented 5 years ago

When you grant camera access from browser, Webcam will work immediately. Also when it's granted, stream is passed to onGranted function prop. Maybe you can convert stream as screenshot as I mentioned above.

rico345100 commented 5 years ago

Any progress? If you solved the problem, please close this issue. If you still stuck in this problem, I'll check this when I get back to home.