Release Kaleido Desktop 0.1.0-beta.13
All checks were successful
Validate Kaleido Desktop / validate (push) Successful in 1m24s
All checks were successful
Validate Kaleido Desktop / validate (push) Successful in 1m24s
- Automatic intro/credits skip waits a configurable delay (default 5 s) with a filling "Skipping intro" button; pausing, seeking or pressing a key cancels it, and seeking into an intro never auto-skips it. - Watch-state queries refetch on window focus, and Continue Watching / next episode poll every minute while visible, so progress from other Plex apps shows up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9729755dc9
commit
328a93695a
15 changed files with 139 additions and 24 deletions
|
|
@ -50,6 +50,8 @@ interface PlayerState {
|
|||
paused: boolean;
|
||||
buffering: boolean;
|
||||
seeking: boolean;
|
||||
/** When the last seek was asked for (Date.now()), so a pending auto-skip can step aside. */
|
||||
lastSeek: number;
|
||||
volume: number;
|
||||
muted: boolean;
|
||||
speed: number;
|
||||
|
|
@ -541,6 +543,7 @@ export const usePlayer = create<PlayerState>((set, get) => ({
|
|||
paused: false,
|
||||
buffering: false,
|
||||
seeking: false,
|
||||
lastSeek: 0,
|
||||
volume: 100,
|
||||
muted: false,
|
||||
speed: 1,
|
||||
|
|
@ -588,6 +591,7 @@ export const usePlayer = create<PlayerState>((set, get) => ({
|
|||
error: '',
|
||||
terminated: false,
|
||||
position: (opts.offsetMs ?? 0) / 1000,
|
||||
lastSeek: 0,
|
||||
duration: input.duration / 1000,
|
||||
cacheTime: 0,
|
||||
paused: false,
|
||||
|
|
@ -724,7 +728,7 @@ export const usePlayer = create<PlayerState>((set, get) => ({
|
|||
seek(seconds) {
|
||||
const st = get();
|
||||
const target = Math.max(0, Math.min(seconds, (st.duration || seconds) - 0.5));
|
||||
set({ position: target, ended: false });
|
||||
set({ position: target, ended: false, lastSeek: Date.now() });
|
||||
if (st.countdown !== null) {
|
||||
stopCountdown();
|
||||
set({ countdown: null });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue