I want is to record reactions of user while watching youtube video, so there will be two videos on screen that will be recorded at the same time . one is Camera Video (Reaction video) and other one on top of it is youtube video(reacted on).
below should be recorded as one video
__________________________
| |
| Camera Video |
| |
| __________|
| | Youtube |
| | Video |
---------------------------
My R&D:
- Cannot use SurfaceView for dual purpose play and record video at the same time.
- TextureView usually is used to show camera previews not record anything.
- I can play preview in textureview and overlap youtube player on top of it and play the video , and at the same time record the whole screen , but it is overkill and i cannot record particular area of screen i think.
Some similar questions that are not related to my question but answer some of the key points mentioned in my question. Q1 , Q2 , Q3
Kindly suggest some method to workaround this problem and how can i achieve it.