use a shorter way of initializing exoplayer

This commit is contained in:
tibbi 2018-12-01 15:47:04 +01:00
parent adf15f0829
commit 99d7d2ad43

View file

@ -144,7 +144,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
checkFullscreen() checkFullscreen()
mWasFragmentInit = true mWasFragmentInit = true
mExoPlayer = ExoPlayerFactory.newSimpleInstance(context, DefaultTrackSelector()) mExoPlayer = ExoPlayerFactory.newSimpleInstance(context)
mExoPlayer!!.seekParameters = SeekParameters.CLOSEST_SYNC mExoPlayer!!.seekParameters = SeekParameters.CLOSEST_SYNC
initExoPlayerListeners() initExoPlayerListeners()