Re: [android-developers] Video rotate function

2009-12-14 Thread Suchand Ghosh
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

[android-developers] Video rotate function

2009-12-09 Thread vyceris
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