Skip to content

Commit

Permalink
manage the playback state
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Jul 29, 2024
1 parent 9c567c5 commit ff62189
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ class VideoPlayerActivity : AppCompatActivity(), AuthSessionUpdater.AuthCallback
}
}

override fun onResume() {
super.onResume()
exoPlayer?.playWhenReady = true
}

override fun onPause() {
super.onPause()
exoPlayer?.playWhenReady = false
}

override fun onStop() {
super.onStop()
releasePlayer()
Expand Down

0 comments on commit ff62189

Please sign in to comment.