Please use SurfaceHolder.SURFACE_TYPE_NORMAL instead of
SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS in your code.
Because SURFACE_TYPE_PUSH_BUFFERS creates a "push" surface, that is a
surface that doesn't owns its buffers. With such a surface lockCanvas will
fail.
Cheers. :)
Chand
On Tue, Dec 8, 2009 a
Hi,
How can implement video rotation during playback (or before starting
playing)? I tried:
private SurfaceView video = null;
-
video = new SurfaceView();
video.getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
-
video.getHolder().lockCanvas().rotate(90);
it gives me error:
1
2 matches
Mail list logo