views:

660

answers:

2

Hi there!

Can anyone tell me if the Android MediaPlayer class is able to play a video stored in a remoted URL? Just for testing purposes, can I use the URL http://localhost/video-name.3gp. Another question is if the MediaPlayer works well on the emulator?

Thanks in advance, Best regards!

+2  A: 

Can anyone tell me if the Android MediaPlayer class is able to play a video stored in a remoted URL?

Yes, if the video is safe for streaming.

Just for testing purposes, can I use the URL http://localhost/video-name.3gp

No. localhost is going to be the emulator itself.

Another question is if the MediaPlayer works well on the emulator?

Only if you have a fairly fast machine, and not for streaming. You absolutely need hardware to test streaming video.

CommonsWare
Could that be an openmoko device?
Rui Gonçalves
That would be a question for the OpenMoko developers.
CommonsWare
Even regular video playback is a stretch in the emulator. I've got a 3.06Ghz iMac with 8Gb of RAM, and video playback is about 5fps in the damn emulator.
Nik Reiman
A: 

Sahadev Tarei

Ans:- Yes

create a media player object

Mediaplayer ob=mediaplayer.Create(mediaplayerActivity.this,file); ob.start(); ob.play()

Sahadev Tarei