use a shorter way of initializing exoplayer
This commit is contained in:
parent
adf15f0829
commit
99d7d2ad43
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue