I am trying to implement a camera view inside the activity where the camera will be kept on to check whether user is looking at the screen or not. I want to get that cameras view in one side of the activity whereas the user can continue its working in the other part of the activity. I want it to work like the front camera is view is kept on the video call while we are seeing the other persons video in the other part of the screen.
I know for starting the camera there is need of the activity but if it is still possible just let me know. If it is impossible then tell me how it is possible in video calls and not in this type of activities ?