This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Media player problem

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
mp.reset();
String link = "Rtsp://localhost/sample.mp3";
mp.setDataSource(getApplicationContext(), Uri.parse(link));
mp.prepare();
mp.start();


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.setKeepScreenOn(true);
videoview.setVideoPath("Rtsp://10.30.10.13/sample_50kbit.3gp");
// videoview.setVideoPath("http://www.mobileplayground.co.uk/video/Crazy%20Frog.3gp");
videoview.start();
videoview.requestFocus();

}
});

please help.... it is urgent
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the first result you get for googling "android PVMFErrNotSupported"?
 
asha Pawaskar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!