i have a seekbar that should move while streaming from url but it's not automatically moving, but when you press on the seekbar it takes you where you should be. and my class doesnt fire run() function!
public void run() {
// TODO Auto-generated method stub
int currentPosition = 0;
int total = mediaPlayer.getDuration();
seekprogress.setMax(total);
while (mediaPlayer != null && currentPosition <total) {
try {
Thread.sleep(100);
currentPosition = mediaPlayer.getCurrentPosition();
} catch (InterruptedException e) {
return;
} catch (Exception e) {
return;
}
seekprogress.setProgress(currentPosition);
}
}