On Fri, Jul 10, 2009 at 1:53 PM, Alslayer<[email protected]> wrote:
>
> That did it.  Man that was difficult.  Thank you so much for your help
> Marco.  I still have a few problems.
> 1. the sound won't stop when I hit the back button

That's because the MediaPlayer doesn't know that you hit the back button.
Since you already have a SurfaceHolder callback, it's probably easiest
to stop the MediaPlayer in the surfaceDestroyed callback.

> 2. there are no controls to stop and start the video - guess I gotta
> make them

Yes, though you might be able to make use of MediaController to
minimize the work you have to do.

> 3. video is stretched out

You will have to adjust the size of the SurfaceView.

Also note that as of Cupcake, playing media from a resource using the
"android.resource://" Uri specifier should work. I haven't tried this
with VideoView, but you could give it a try. If it works, you get all
these things automatically.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to