Skip to content

Commit

Permalink
Merge pull request #13499 from nextcloud/videoPlaypack
Browse files Browse the repository at this point in the history
pause audio/video when swiping away
  • Loading branch information
tobiasKaminsky authored Oct 2, 2024
2 parents 05a05b0 + e1756fd commit 70be606
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,12 @@ class PreviewMediaFragment : FileFragment(), OnTouchListener, Injectable {
super.onDetach()
}

override fun onPause() {
exoPlayer?.pause()
releaseVideoPlayer()
super.onPause()
}

companion object {
private val TAG: String = PreviewMediaFragment::class.java.simpleName

Expand Down

0 comments on commit 70be606

Please sign in to comment.