5

I know that I can use RenderScript on Android to blur images, but does anybody know if I can apply the same to video views so that my complete video is gaussian blurred?

APerson
  • 8,140
  • 8
  • 35
  • 49
Florian
  • 2,048
  • 3
  • 28
  • 36

2 Answers2

1

VideoView, which extends SurfaceView, does not utilize the drawing cache due to being hardware accelerated. This means you won't be able to get stills. I was forced to scrap the design I had using the paused video still.

Check out: VideoView getDrawingCache is returning black

Edit: As I look into this more, there might be a way through https://github.com/google/grafika, but I haven't seen anyone verify it as a performant workaround.

Community
  • 1
  • 1
Zack
  • 1,181
  • 2
  • 11
  • 26
1

You should use a thumbnail of the video in front of it. You can then, blur the image using this lib: https://github.com/jrvansuita/GaussianBlur

Vansuita Jr.
  • 1,949
  • 17
  • 18