mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
loop the video if set so
This commit is contained in:
@ -276,10 +276,14 @@ class VideoFragment : ViewPagerFragment(), View.OnClickListener, SurfaceHolder.C
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onCompletion(mp: MediaPlayer) {
|
override fun onCompletion(mp: MediaPlayer) {
|
||||||
|
if (Config.newInstance(context).loopVideos) {
|
||||||
|
playVideo()
|
||||||
|
} else {
|
||||||
mSeekBar!!.progress = mSeekBar!!.max
|
mSeekBar!!.progress = mSeekBar!!.max
|
||||||
mCurrTimeView!!.text = getTimeString(mDuration)
|
mCurrTimeView!!.text = getTimeString(mDuration)
|
||||||
pauseVideo()
|
pauseVideo()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onVideoSizeChanged(mp: MediaPlayer, width: Int, height: Int) {
|
override fun onVideoSizeChanged(mp: MediaPlayer, width: Int, height: Int) {
|
||||||
setVideoSize()
|
setVideoSize()
|
||||||
|
Reference in New Issue
Block a user