Video Problem

All your problems with Audio, Video and Images.

Video Problem

Postby Txorl » Sat Jan 31, 2009 9:00 pm

Hello

maybe someone has got an idea how to solve this problem:

I have an Activity which is playing a Video.
I pause the Video.
Now I start a new Activity which contains a Textview.
Now I close that Activity with the TextView.

If I now press play(in order to start the video) i can hear the sound of the Video but the Videoimages are not appearing on the Screen.
Does anyone know why (after starting and the closing an Activity) I can hear the sound of the playing video but can´t see the videoimages?

Thanks in advance

Txorl
Txorl
Junior Developer
Junior Developer
 
Posts: 16
Joined: Wed Sep 17, 2008 3:12 pm

Top

Postby MrSnowflake » Sun Feb 01, 2009 5:22 pm

You probably do something wrong with the lifecycle of you video activity. Are you sure you remake the surface for the video to play?
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Hi

Postby Txorl » Sun Feb 01, 2009 6:51 pm

No I didnt remake the surface. Maybe you could tell me where and how I should remake it?

Thanks
Txorl
Junior Developer
Junior Developer
 
Posts: 16
Joined: Wed Sep 17, 2008 3:12 pm

Postby MrSnowflake » Mon Feb 02, 2009 9:27 am

Check out the LunarLander example, I think it also creates a SurfaceView and destroys it and recreates it.

Or you should use VideoView. If you already are, then I really can't help you :).
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Hi

Postby Txorl » Wed Feb 04, 2009 6:49 pm

I dont use the VideoView and I cant find anything interesting in the LunarLander example.

Any other advice from someone?

Thnks
Txorl
Junior Developer
Junior Developer
 
Posts: 16
Joined: Wed Sep 17, 2008 3:12 pm

Postby MrSnowflake » Wed Feb 04, 2009 7:08 pm

Then why don't you use VideoView?
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 23 guests