mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
loop the video if set so
This commit is contained in:
parent
1bbca50bac
commit
085c62b10b
1 changed files with 7 additions and 3 deletions
|
@ -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 a new issue