1. Are you ready for the Galaxy S20? Here is everything we know so far!

ScreenCapture Media Projection

Discussion in 'Android Lounge' started by Android_2014, Aug 9, 2019.

  1. Android_2014

    Android_2014 Lurker
    Thread Starter

    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.

    1. Download the Forums for Android™ app!


  2. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!

    is this for developing purposes?
  3. Dhan Ama

    Dhan Ama Lurker

    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!

Share This Page