loop the video if set so
This commit is contained in:
parent
1bbca50bac
commit
085c62b10b
|
@ -276,9 +276,13 @@ class VideoFragment : ViewPagerFragment(), View.OnClickListener, SurfaceHolder.C
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCompletion(mp: MediaPlayer) {
|
override fun onCompletion(mp: MediaPlayer) {
|
||||||
mSeekBar!!.progress = mSeekBar!!.max
|
if (Config.newInstance(context).loopVideos) {
|
||||||
mCurrTimeView!!.text = getTimeString(mDuration)
|
playVideo()
|
||||||
pauseVideo()
|
} else {
|
||||||
|
mSeekBar!!.progress = mSeekBar!!.max
|
||||||
|
mCurrTimeView!!.text = getTimeString(mDuration)
|
||||||
|
pauseVideo()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onVideoSizeChanged(mp: MediaPlayer, width: Int, height: Int) {
|
override fun onVideoSizeChanged(mp: MediaPlayer, width: Int, height: Int) {
|
||||||
|
|
Loading…
Reference in New Issue