-Fix play queue remove.

-Fix player discontinuity refresh.
This commit is contained in:
John Zhen M 2017-09-04 11:05:13 -07:00 committed by John Zhen Mo
parent 73f46d3762
commit a91ef2ce9e
4 changed files with 63 additions and 36 deletions

View file

@ -550,7 +550,7 @@ public abstract class BasePlayer implements Player.EventListener,
@Override
public void onPositionDiscontinuity() {
int newIndex = simpleExoPlayer.getCurrentWindowIndex();
playbackManager.refresh(newIndex);
if (playbackManager.getCurrentSourceIndex() != newIndex) playbackManager.refresh(newIndex);
}
/*//////////////////////////////////////////////////////////////////////////