Skip to content

Commit

Permalink
Updates apps to resume ad playback when returning to the app.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 673021026
  • Loading branch information
google-ima-devrel-bot authored and IMA Developer Relations committed Sep 10, 2024
1 parent 0a023bf commit 31828db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public void onPause() {
public void onResume() {
super.onResume();
if (sampleVideoPlayer != null && sampleVideoPlayer.isStreamRequested()) {
// Add logic to be called when coming back to the player's app.
sampleVideoPlayer.play();
sampleVideoPlayer.enableControls(false);
}
}
}

0 comments on commit 31828db

Please sign in to comment.