Skip to content

Commit

Permalink
resources: smoother video play management (fixes #3951) (#3954)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Jul 29, 2024
1 parent 9c21cf9 commit 82de971
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1725
versionName "0.17.25"
versionCode 1726
versionName "0.17.26"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
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 82de971

Please sign in to comment.