Please explain how could be resolved the problem:
I tried to write the code which draws graphics using canvas on the same view where video is playing.
I use SurfaceView (or VideoView) assigning it to MediaPlayer object.
There is a separate thread where SurfaceHolder.lockCanvas is called to retrieve Canvas object. This object is put as parameter to overridden method SurfaceView.onDraw then some graphics is drawn there but video disappeared. It also disappeared if the method SurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS) was not called before. If it is called the lockCanvas returns null but video is OK in this case (There is some information about such behavior in documentation).
The question is - how is to draw graphics over playing video on the SurfaceView object?