Skip to content

refactor for TV platforms#911

Open
swifty-tekno wants to merge 3 commits into
edde746:mainfrom
swifty-tekno:main
Open

refactor for TV platforms#911
swifty-tekno wants to merge 3 commits into
edde746:mainfrom
swifty-tekno:main

Conversation

@swifty-tekno
Copy link
Copy Markdown

i might have missed something but it should run like it did before on tv platforms with the new filling skip button on other platforms
i cant test on TV platform
i did flip the bools during testing to see if it would show old style for tv on desktop version and it showed fine like it did before

tbh i dont know what im doing im hoping i got everything so it respects the 200ms timer for tv

Added AnimationController for smooth auto-skip progress and updated related logic.
Refactor auto-skip functionality for TV and non-TV platforms. Use Timer for TV to avoid performance issues and maintain smooth animation for other platforms.
@edde746
Copy link
Copy Markdown
Owner

edde746 commented Apr 23, 2026

  • The new debounce in _performAutoSkip reuses _lastSkipActionTime, which is already owned by the seek double-tap handlers — these unrelated flows will now cancel each other within 200ms.
  • Non-TV path does per-frame setState via addListener, violating the same frame-budget rationale the TV branch preserves. AnimatedBuilder would avoid the whole-subtree rebuild.
  • Redundant ignoring: true, redundant null check, PlatformDetector.isTV() called 4× per build, title doesn't match where the real change happened.

Separate the skip-marker button debounce from the existing seek double-tap debounce so unrelated skip flows no longer cancel each other within 200ms.
Preserve TV skip-marker behavior with countdown text, while avoiding the old wipe animation path for TV.
Replace non-TV auto-skip rebuild logic from per-frame setState() via AnimationController.addListener to AnimatedBuilder, limiting updates to the button subtree only.
Reduce redundant PlatformDetector.isTV() checks inside the skip marker build path.
Keep the base button text logic as-is; it is correct and does not need functional changes.
@swifty-tekno
Copy link
Copy Markdown
Author

is this better as i said before i dont really know too much i was just trying to add a nice thing to the skip button and forgot about other platforms

swifty-tekno@3ad8678

@edde746
Copy link
Copy Markdown
Owner

edde746 commented Apr 23, 2026

_toggleControls no longer cancels auto-skip — on touch devices this means tap-to-see-controls doesn't interrupt the countdown anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants