• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Swing/FileName specification

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Sir,
I have a difficulty in this code:
File file=new File("");
path="http://sonara/project/sounds/"+filename;-----1(or)
path="file:///c:\\sounds\\"+filename;--------------2
mediaplayer.setFile(path);
I am passing a set of sound files which has 8 soundfiles(for example.)
The soundfiles r fetched & its starts by newmediaplyer.start();
When the path for the sound file is given as specified in 1 i am not getting the 1st soundfile alone the remaining soundfiles r playing correctly.
But when the path for the sound file is given as specified in 2 ,i am getting the sounds files correctly played from the begining(ie from the first).
Why is there their any difference in specifying the path.
If so pl.. help me in doing this correctly.
Excepting u'r solution
with regards,
Sonararahul.

 
reply
    Bookmark Topic Watch Topic
  • New Topic