Page 1 of 1

Android adding SurfaceView causes black flash

Posted: Wed Oct 23, 2013 2:22 am
by monte
Hi

I'm getting this issue in my implementation of mergAVCam (camera control):
http://stackoverflow.com/questions/8772 ... ck-on-load

The answer suggests adding a 0x0px SurfaceView to the ViewGroup when it's created will resolve the issue. Any thoughts?

Cheers

Monte

Re: Android adding SurfaceView causes black flash

Posted: Fri Oct 25, 2013 9:48 pm
by LCMark
@monte: Seems a reasonable thing to try - the empty SurfaceView could be created on creation of the Engine object, when the main view is created. Have you tried and see if it works?

Re: Android adding SurfaceView causes black flash

Posted: Mon Oct 28, 2013 3:35 am
by monte
Have you tried and see if it works?
I haven't yet.. thought I'd see what you thought first. I'll give it a go and if it works send a pull request.