Always set set seek mode to accurate
This commit is contained in:
1 parent
56351035c6
commit
c96f4605d7
7 files changed
+10
-10
No files matched your search
@@ -26,7 +26,7 @@ namespace SponsorBlockController
|
||||
const SEEK_ECHO_SLACK_MS = 100
|
||||
|
||||
class Controller
|
||||
' deps the coordinator owns; top = the Video node (seekMode + duration).
|
||||
' deps the coordinator owns; top = the Video node (duration).
|
||||
private jobQueue as object = invalid
|
||||
private preferences as object = invalid
|
||||
private notifications as object = invalid
|
||||
@@ -77,7 +77,7 @@ namespace SponsorBlockController
|
||||
}
|
||||
end function
|
||||
|
||||
' Store the segments and set seekMode=accurate on the Video node.
|
||||
' Store the segments.
|
||||
function OnSegmentsJobDone(event as object) as void
|
||||
info = event.getInfo()
|
||||
if not info.success
|
||||
@@ -89,9 +89,6 @@ namespace SponsorBlockController
|
||||
end if
|
||||
m.segments = segments
|
||||
m.timeline = info.data.timeline
|
||||
if m.top <> invalid
|
||||
m.top.seekMode = "accurate"
|
||||
end if
|
||||
LogDebug("segments ready:", segments.Count())
|
||||
end function
|
||||
|
||||
|
||||
Reference in new issue
Block a user