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

Screen Capture with MediaProjection to texture_id

Dhan Ama

Lurker
Mar 4, 2021
2
0
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!
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones