my objective are replace filter video data to peerconnection as local stream ,in my progress i already using Camera X to get image then use tensorFlow lite Ai model for filter segmentionMask image with bitmap and render this with openGL on java code now my issue are how can i add this bitmap as video data for peerconnection i just find i need to convert bitmap to Video Frame then add to peerconnection but how can i replace it over current local video stream from method mediaDevices.getUserMedia( or i need to create whole peerconnection for this filter video data i have moreover i find _setVideoEffect and VideoFrameProcessorFactoryInterface can i use it for my case?
1 Like
Share your code with github we’ll help, each time we need to update peerconnection
hey guy i found solution here video effect registry done by SHIVAJIKUMAR007 · Pull Request #1176 · react-native-webrtc/react-native-webrtc · GitHub it different from what i try to do but it work for me XD