• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Play audio using JMF

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
I am J.Shobana I am trying to play an audio wave file using Java Media Framework(JMF). I downloaded JMF 2.1.1e and set the JMFHOME and the corresponding CLASSPATH and PATH.

I am not able to play the wave file. Whereas i am able to play the same wave file using ordinary Java program.

The logic is first i am using


URL url = new URL("file : path of the wave file");
Player player=null;
player=Manager.createPlayer(url);
player.start();
System.out.println("Finished");
player.stop();
player.close();

I get an error:unable to prefetch com.sun.media.PlaybackEngine

Please give me a solution. Thanks in advance.


With Regards,
J.Shobana.
 
reply
    Bookmark Topic Watch Topic
  • New Topic