change seekbar while buffering (certainly not ideal, but good enough for now)

This commit is contained in:
Domingos Lopes 2016-04-27 23:56:07 -04:00
parent 94af4763d2
commit 13b5a62fa5
2 changed files with 13 additions and 2 deletions

View File

@ -64,4 +64,16 @@ public class CastplayerActivity extends MediaplayerInfoActivity {
}
super.onResume();
}
@Override
protected void onBufferStart() {
//sbPosition.setIndeterminate(true);
sbPosition.setEnabled(false);
}
@Override
protected void onBufferEnd() {
//sbPosition.setIndeterminate(false);
sbPosition.setEnabled(true);
}
}

View File

@ -190,14 +190,12 @@ public abstract class MediaplayerInfoActivity extends MediaplayerActivity implem
|| resId == R.string.player_seeking_msg
|| resId == R.string.player_buffering_msg) {
// TODO Show progress bar here
sbPosition.setIndeterminate(true);
}
}
@Override
protected void clearStatusMsg() {
// TODO Hide progress bar here
sbPosition.setIndeterminate(false);
}
@ -560,6 +558,7 @@ public abstract class MediaplayerInfoActivity extends MediaplayerActivity implem
private ChaptersFragment chaptersFragment;
public void onMediaChanged(Playable media) {
Log.d(TAG, "media changing to " + media.getEpisodeTitle());
this.media = media;
if(coverFragment != null) {
coverFragment.onMediaChanged(media);