menu_on_top
menu_on_top

Reputation: 2613

How to create a Video Player

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?

Upvotes: 1

Views: 14932

Answers (2)

Turnsole
Turnsole

Reputation: 3472

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.

Upvotes: 6

sled
sled

Reputation: 14625

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.

Upvotes: 3

Related Questions