1

I'm trying to create a simple video player with 3 buttons: play, stop and pause. My video will be from the raw folder or at a server url that I will upload it to. Do you have any tutorial on this in order to get some ideas? Also, I have created a media player with a song, but I think that this can't work for videos, right?

Matthew
  • 44,826
  • 10
  • 98
  • 87
menu_on_top
  • 2,613
  • 14
  • 44
  • 71

2 Answers2

6

There's a project sample in the SDK for the VideoView. You can attach a MediaController to it, which will show you play/pause stop and skip buttons. It's also on the developer website, here.

Turnsole
  • 3,422
  • 5
  • 30
  • 52
3

this may be what you are looking for: http://davanum.wordpress.com/2009/12/04/android-%E2%80%93-videomusic-player-sample-take-2/

To make this more abstract, the VideoView Widget is what you need.

sled
  • 14,525
  • 3
  • 42
  • 70