react-native-nodemediaclient icon indicating copy to clipboard operation
react-native-nodemediaclient copied to clipboard

Get the captured frames in real time while the streaming is on.

Open rishihashbinary opened this issue 4 years ago • 1 comments

I was working on a use case where i need to capture each frame while the streaming is on and then store these pictures in local storage. Is there an option to get the captured frames in real time while the streaming is on? I checked the android library and found a function onCapture(byte[] pictureBuffer, int width, int height, int orientation) which is kind of a listener while the frame is captured, is there a wrapper around this function in react library? Appreciate your help!

rishihashbinary avatar Dec 02 '20 15:12 rishihashbinary

Hi, @rishihashbinary! I've just opened a PR #130 with iOS implementation for capturing pictures during the stream. Maybe it can help you with implementing the same logic for the Android?

heuels avatar Dec 05 '20 17:12 heuels