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) {
|
override fun onStartTrackingTouch(seekBar: SeekBar) {
|
||||||
initMediaPlayer()
|
initMediaPlayer()
|
||||||
|
if (mMediaPlayer == null)
|
||||||
|
return
|
||||||
|
|
||||||
mMediaPlayer!!.pause()
|
mMediaPlayer!!.pause()
|
||||||
mIsDragged = true
|
mIsDragged = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue