From 2ef019990bc2c8b90de850aa3bc9e91b7f9eeedd Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Oct 2018 22:04:36 +0200 Subject: [PATCH] allow faster video seeking by dragging the bottom seekbar --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index f9c53aac5..470a061e0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -115,6 +115,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } mExoPlayer = ExoPlayerFactory.newSimpleInstance(context, DefaultTrackSelector()) + mExoPlayer!!.setSeekParameters(SeekParameters.CLOSEST_SYNC) initExoPlayerListeners() medium.path.getVideoResolution()?.apply {