Reputation: 1257
I have successfully record a screen with MediaProjection api, but I want to record a specific layout/view in my activity not whole screen.
I followed these tutorials;
https://github.com/mtsahakis/MediaProjectionDemo
Upvotes: 1
Views: 880
Reputation: 145
You can't record only a particular layout. Media Projection API directly gets the frame buffers from the GPU itself (which is the output from the surface flinger) which is everything that you see on the screen (including status bar, navigation bar and all overlays and stuff including the app you are trying to record.
Upvotes: 1