I am in a situation where i have to utilize the camera2 api to generate a webrtc video. The same video needs to get stored on the sd card and a fix sized buffer and also needs t