Fix video does not continuing from previous progress when opened
This commit is contained in:
1 parent
f681a7024c
commit
d2fbd59d6a
6 files changed
+31
-2
No files matched your search
@@ -471,7 +471,6 @@ function SeekToPercentOfDuration() as void
|
||||
if seekToPercent = invalid
|
||||
return
|
||||
end if
|
||||
m.seekToPercent = invalid
|
||||
|
||||
duration = m.top.duration
|
||||
if duration = 0
|
||||
@@ -485,6 +484,7 @@ function SeekToPercentOfDuration() as void
|
||||
return
|
||||
end if
|
||||
|
||||
m.seekToPercent = invalid
|
||||
seek = (MathUtils.Clamp(seekToPercent, 0, 100) / 100.0) * duration
|
||||
if seek > 0
|
||||
LogInfo("Seeking to percent duration watched", seek)
|
||||
|
||||
Reference in new issue
Block a user