fix: skip intro button staying on screen

close #550
This commit is contained in:
edde746
2026-02-25 23:03:07 +01:00
parent c480e44e0e
commit bf3f5282f2
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ class PlexMarker {
bool containsPosition(Duration position) {
final posMs = position.inMilliseconds;
return posMs >= startTimeOffset && posMs <= endTimeOffset;
return posMs >= startTimeOffset && posMs < endTimeOffset;
}
}
@@ -406,6 +406,9 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
void _skipMarker() {
if (_currentMarker != null) {
final endTime = _currentMarker!.endTime;
setState(() {
_currentMarker = null;
});
widget.player.seek(endTime);
widget.onSeekCompleted?.call(endTime);
}