Video display issue

All your problems with Audio, Video and Images.

Video display issue

Postby chabfive » Mon Jun 22, 2009 2:38 pm

Hi,

I develop, an app which have two SurfaceView. One of them (view1) is used to draw graphic 2D object (shape, text) and the other (view2) to display a video playback.

To draw the graphic 2D object, I used lockCanvas() and unlockCanvasAndPost() on the SurfaceHolder of the SurfaceView.

My problem is the following:

first I use an AbsoluteLayout to manage my views and a G1 or G2.

- If the view2 is under the view1, the video playback is correctly displayed, but if I go to the home screen of the device and after go back to my app, the video playback is no more displayed.
- If the view1 is under the view2, the video playback is not displayed, but if I go to the home screen of the device and after go back to my app, the video playback correctly displayed.

I don't understand this behavior.

Thanks for your help.
chabfive
Freshman
Freshman
 
Posts: 8
Joined: Tue Dec 09, 2008 9:53 am

Top

Re: Video display issue

Postby sbw.android » Mon Jun 22, 2009 5:21 pm

hi,
you may refer to this post from an android dev who recommends not using 2 surfaceview :
http://groups.google.com/group/android- ... 24a2e48bb3
sbw.android
Freshman
Freshman
 
Posts: 4
Joined: Mon Jun 22, 2009 5:17 pm

Postby chabfive » Tue Jun 23, 2009 9:48 am

Hi,

Thanks for your response.

But how can I draw 2D primitives and display a video at the same time without multiple SurfaceView?
chabfive
Freshman
Freshman
 
Posts: 8
Joined: Tue Dec 09, 2008 9:53 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests