File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Media player problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Media player problem" Watch "Media player problem" New topic

Media player problem

asha Pawaskar

Joined: Jun 25, 2010
Posts: 7
Hi all

I am developing a audio and video streaming application.

I have installed Darwin streaming server on my system and it is running.

Audio problem:
i am able to play audio file, using http protocol from some remote location but not able to play it from Darwin server (using Rtsp protocol). It is not showing any error on the sreen but in DDMS it says

Command PLAYER_INIT completed with an error or info PVMFFailure and some bizarre message

here is my code for audio play:

MediaPlayer mp = new MediaPlayer();
String link = "Rtsp://localhost/sample.mp3";
mp.setDataSource(getApplicationContext(), Uri.parse(link));

Video problem:
I am trying to play video file from http as well as rtsp, and for both I am getting dialog box saying "Sorry this video can not be played".... and in DDMS it says "Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported"
I am playing .3gp file.....

If I place same file in sdcard and play then it works smoothly....

here is the code for video play
Play.setOnClickListener(new OnClickListener() {

public void onClick(View v) {

// videoview.setVideoPath("");


please help.... it is urgent
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Have you looked at the first result you get for googling "android PVMFErrNotSupported"?
asha Pawaskar

Joined: Jun 25, 2010
Posts: 7
But my file is not in the local directory... so I can't use FileDescriptor

I want to play it from the remote location (like by giving http video link)

and second thing is I have installed Darwin server and there are some sample video files in the Darwin server which I am trying to play, but I am getting Dialog box saying "Sorry this file can not be played", as I have already mentioned...
I agree. Here's the link:
subject: Media player problem
It's not a secret anymore!