Do not show buffering indicator when playing local file
This commit is contained in:
parent
b4b2b45247
commit
5a3778e2f0
|
@ -265,7 +265,11 @@ public class AudioPlayerFragment extends Fragment implements
|
|||
|
||||
@Override
|
||||
public void onBufferUpdate(float progress) {
|
||||
sbPosition.setSecondaryProgress((int) (progress * sbPosition.getMax()));
|
||||
if (isStreaming()) {
|
||||
sbPosition.setSecondaryProgress((int) (progress * sbPosition.getMax()));
|
||||
} else {
|
||||
sbPosition.setSecondaryProgress(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -743,6 +743,10 @@ public class PlaybackController {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isStreaming() {
|
||||
return playbackService != null && playbackService.isStreaming();
|
||||
}
|
||||
|
||||
private void initServiceNotRunning() {
|
||||
if (getPlayButton() == null) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue