Until now I have a full working code that plugs in a camera to see the preview of the front camera.
What I\'m trying to do now is to get that camera working inside
It seems you have attribute cameraId in CameraExtractionFragment and CameraExtraction, but this is assigned a value only in CameraExtractionFragment.
cameraId
CameraExtractionFragment
CameraExtraction
You should remove CameraExtraction.cameraId and use CameraExtractionFragment.cameraId instead.
CameraExtraction.cameraId
CameraExtractionFragment.cameraId