Hi, I am trying to make a simple audio player.I am showing duration(progress) on a JSlider.But I am not able to implement when user clicks or drags the slider to new position,how to set the new position at that point.
Clip has getMicrosecondLength(), getMicrosecondPosition() and setMicrosecondPosition(long microseconds) methods, which seem to be exactly what you need.
I have no idea which interface would be most appropriate in your case. Doesn't Clip work?
thanks for replying ,but I think Clip is not appropriate here,as I am trying streaming ,while Clip preloads audio data instead of streaming,thats how it allows to access it at any moment.