check for null mediaplayer at dragging video progress
This commit is contained in:
parent
62da5a0477
commit
5d2528b415
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||
|
||||
override fun onStartTrackingTouch(seekBar: SeekBar) {
|
||||
initMediaPlayer()
|
||||
if (mMediaPlayer == null)
|
||||
return
|
||||
|
||||
mMediaPlayer!!.pause()
|
||||
mIsDragged = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue