• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help ScreenCapture Media Projection

Using the Media Projection API to take the screen capture of the application and it was broke the pixel's taken from the ImageReader.We use 4K Video to play in the Exoplayer and we need to take the screenshot.

Could you please share the screen capture methods for taking the 4K video in exoplayer.
 
I am capturing the screen continuously using

mVirtualDisplay = mMediaProjection.createVirtualDisplay("ScreenCapture", mSurfaceView.getWidth(), mSurfaceView.getHeight(), mScreenDensity, DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR,mSurface, null, null);

I want to pass this mSurface as a texture to NDK (OpenGL). I could not find away to do this. Your help would be appreciated!
 
Back
Top Bottom