Commit 4b8a6572 by olly Committed by Oliver Woodman

Fix resume position if user seeks whilst in error state

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=146001900
parent 8ddfc12f
......@@ -425,7 +425,12 @@ public class PlayerActivity extends Activity implements OnClickListener, ExoPlay
@Override
public void onPositionDiscontinuity() {
// Do nothing.
if (playerNeedsSource) {
// This will only occur if the user has performed a seek whilst in the error state. Update the
// resume position so that if the user then retries, playback will resume from the position to
// which they seeked.
updateResumePosition();
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment