MediaProjectionDemo
MediaProjectionDemo copied to clipboard
Black Bitmap after screenshot
Hi, When i take screenshot of YouTube during movie playing, i get a black bitmap in Imagelistener. Thanks.
Hi, Which Android OS version are you using and how do you watch the movie (YoutTube app, browser, which browser version, etc). Thanks, Manos
Hi manos and thank you for your answer. Actually i use android tv in version 6.1 and I try to capture the screen of my Android TV in bitmap format but when a video appears in the Youtube application for example, the pixels in the bitmap are black.
I use a part of your code to made a system similar to Ambilight on android tv with an arduino.
HI, I am not familiar with Android tv, but I would imagine that the way ImageReader is created does not fit your context. If ImageReader is in fact producing images in a reasonable frame rate, but they are black, maybe try to play around with ImageReader.newInstance(mWidth, mHeight, PixelFormat.RGBA_8888, 2); and use different formats.