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 at 8:36 PM, vyceris <kvytau...@gmail.com> wrote:
> 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: > 12-08 15:39:54.551: WARN/System.err(17811): android.view.SurfaceHolder > $BadSurfaceTypeException: Surface type is SURFACE_TYPE_PUSH_BUFFERS. > > If somebody could give me simple example or just references how to > establish it, that would be great. > Maybe Android does not support video rotation at all. Could somebody > confirm that? > Thank you > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en