posted 22 years ago
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.