R
rundbom
I have this problem that seems to be very strange and I can't find a
solution to it. What I want to do is just to get the length (duration)
of an audio file. I do this by utilising
AudioSystem.getAudioFileFormat(). When I set up a test program that I
run directly from my computer this works fine. The problem is that I
want to use it in a JavaBean. So, when I try to set up the same system
that works fine in the "local" program in a javabean and invoke it via
a .jsp page the server gets stuck on an infinite loop when executing
the AudioSystem.getAudioFileFormat(). But this only happens with some
audio files but these same audio files works perfectly in the "local"
program. So my question is if anyone knows why this happends or if
someone has a way of getting the length/duration of an audio file
without using the getAudioFileFormat()?
solution to it. What I want to do is just to get the length (duration)
of an audio file. I do this by utilising
AudioSystem.getAudioFileFormat(). When I set up a test program that I
run directly from my computer this works fine. The problem is that I
want to use it in a JavaBean. So, when I try to set up the same system
that works fine in the "local" program in a javabean and invoke it via
a .jsp page the server gets stuck on an infinite loop when executing
the AudioSystem.getAudioFileFormat(). But this only happens with some
audio files but these same audio files works perfectly in the "local"
program. So my question is if anyone knows why this happends or if
someone has a way of getting the length/duration of an audio file
without using the getAudioFileFormat()?