Commit 6b0fd513 by andrewlewis Committed by Oliver Woodman

Reset playback info but not position/state in release

ImaAdsLoader gets the player position after the app releases
the player to support resuming ads at their current position
if the same ads loader is reused.

PiperOrigin-RevId: 243969916
parent dcb8417a
...@@ -403,8 +403,8 @@ import java.util.concurrent.CopyOnWriteArrayList; ...@@ -403,8 +403,8 @@ import java.util.concurrent.CopyOnWriteArrayList;
eventHandler.removeCallbacksAndMessages(null); eventHandler.removeCallbacksAndMessages(null);
playbackInfo = playbackInfo =
getResetPlaybackInfo( getResetPlaybackInfo(
/* resetPosition= */ true, /* resetPosition= */ false,
/* resetState= */ true, /* resetState= */ false,
/* playbackState= */ Player.STATE_IDLE); /* playbackState= */ Player.STATE_IDLE);
} }
......
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