allow faster video seeking by dragging the bottom seekbar

This commit is contained in:
tibbi 2018-10-02 22:04:36 +02:00
parent bb7a911df1
commit 2ef019990b

View file

@ -115,6 +115,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
} }
mExoPlayer = ExoPlayerFactory.newSimpleInstance(context, DefaultTrackSelector()) mExoPlayer = ExoPlayerFactory.newSimpleInstance(context, DefaultTrackSelector())
mExoPlayer!!.setSeekParameters(SeekParameters.CLOSEST_SYNC)
initExoPlayerListeners() initExoPlayerListeners()
medium.path.getVideoResolution()?.apply { medium.path.getVideoResolution()?.apply {