Repository navigation
Conversation
Large accidental seekbar taps, scrubs, or swipe seeks over 25s had no quick way to return to the prior timestamp. Track the pre-jump position in PlayerViewModel across seekbar, gesture, and coalesced relative seeks, and show a 4s theme-matched SeekUndoPill (touch and TV D-Pad focusable) with a toggle in Player -> Seek settings.
Resuming a video hours or days later often drops you mid-sentence without enough context. Persist lastWatchedAt in PlaybackStateEntity (Room v11 with MIGRATION_10_11), step back 3s/5s/10s based on elapsed time since lastWatchedAt, and show a 2s ResumeContextPill (touch and TV D-Pad focusable) to jump back to the exact saved position.
Missing a quick phrase forced users to rewind, open the subtitle sheet, toggle subtitles on, and turn them back off manually. Add SingleActionGesture.ClarifyRewind, PlayerButton.CLARIFY_REWIND, and TV remote long-press/Captions key mappings that jump back 8s, temporarily enable subtitles for up to 10s (or until passing the original timestamp), and show a ClarifyRewindPill.
Pure-white subtitles and bright player HUD icons can cause eye strain in dark rooms, while video color pipelines should remain untouched. Add a Dark-Room Comfort toggle in MoreSheet and Player -> Display settings that caps bright subtitle colors toward warm #C8C4BC via libmpv sub-color/secondary-sub-color and softens peak HUD luminance in PlayerColors.
Full-width bottom sheets block the video on landscape phones, tablets, and Android TV. Render Chapters and Up-Next Queue in a translucent glass SidePeekDrawer sliding from the trailing edge (RTL-aware) with live chapter progress, TV D-Pad focus rings, and Back/outside-tap dismissal.
Large phones make reaching top and center player controls difficult one-handed, while corner triggers risk colliding with Android edge/bottom system gestures. Add a touch-only ThumbArcMenu (hidden on TV) padded strictly inside WindowInsets.systemGestures, fanning up to 5 customizable quick actions with spring motion, haptics, and RTL mirroring, configured in Player Controls settings.
Episode thumbnails, synopses, and titles in Series Detail can spoil plot twists before you watch an episode. Add a global Spoiler-Free Show Mode toggle in Appearance settings plus a per-series override in SeriesDetailScreen overflow menu that blurs unwatched thumbnails, hides synopses, and masks titles to Episode XX until watched.
Media cards showed only static thumbnails when browsing on TV or inspecting items on mobile. Add a throttled, muted keyframe MotionPreviewOverlay triggered after 1.5s of TV D-Pad focus or press-and-hold on touch devices, cancelled immediately on focus loss/scroll, suppressed on unwatched episodes in Spoiler-Free Show Mode, and toggled in Appearance settings.
Tapping the title chevron when a series has only one episode and no chapters set sheetShown to Sheets.Chapters, while PlayerSheets returned early without rendering or dismissing, freezing player controls until Back was pressed. Hide the chevron and disable title-sheet click when neither playlist nor chapters exist, and auto-dismiss Sheets.Chapters in portrait if currentChapter is null.
When launching a single-episode series from SeriesDetailScreen, PlayerActivity found matchingSeries with size <= 1 and fell through to parentFolder.listFiles, pulling every unrelated video in Downloads/Movies into the Now Playing queue. Return early once matchingSeries is found even when it has <= 1 episode.
Dropping volume to 0% or muting often means you still want to follow dialogue via captions. Add muteAwareCaptions in SubtitlesPreferences and evaluateMuteAwareCaptions in PlayerViewModel to enable subtitles at 0% volume and restore the previous subtitle state when volume is raised.
Checking when a movie or episode will finish required doing mental math from remaining time and playback speed. Extend the duration timer tap in ModernPlayerControls and SeekbarWithTimers to cycle Total -> Remaining -> speed-adjusted Ends HH:MM wall-clock time.
Pinching to resize subtitles showed only a static percentage without a one-tap way to restore default scale. Update SubtitleScalePlayerUpdate to display the live scale multiplier (e.g. 1.15x) alongside a one-tap Reset chip wired to PlayerViewModel.resetSubtitleScale().
When headphones unplug or Bluetooth disconnects and pauses playback, users had no quick context or one-tap resume pill. Add AudioDisconnectPill and PlayerViewModel.onAudioBecomingNoisy() triggered from ACTION_AUDIO_BECOMING_NOISY to show a 3s Resume pill (touch and TV D-Pad focusable).
Late-night watching often swings between quiet dialogue and loud action peaks. Add nightDialogueBoost in AudioPreferences, AudioTracksSheet, AudioPreferencesScreen, and MPVView applying libmpv lavfi=[dynaudnorm=f=150:g=15:p=0.9:m=10.0].
Having 1080p and 4K or dual-audio copies of the same episode cluttered the Series Detail episode list with duplicate cards. Group episodes by episodeNumber in SeriesDetailScreen, show a 'N versions' pill on multi-version cards, and open a version picker dialog to choose which file to play.
Navigating chapters on Android TV required waking the full HUD and opening a side drawer. Add TvChapterPreviewStrip opened by pressing DPAD_UP while TV controls are hidden, allowing DPAD_LEFT/RIGHT scrubbing and DPAD_CENTER/ENTER jump.
Resetting Speed, Video Zoom, Subtitle Delay/Speed, or Audio Delay required dragging back or hunting for a reset button. Add onDoubleTapReset to SliderItem and double-tap handlers on PlaybackSpeedSheet, VideoZoomSheet, and SubtitleDelayPanel/DelayCardContent.
Sleep Timer previously paused playback abruptly at 0s, which could startle a half-asleep viewer. Smoothly ramp mpv volume down over the final 15 seconds of startTimer() and restore the baseline volume once paused or cancelled.
Returning to the Android TV library while a video is in progress required navigating down into Continue Watching. Show a focusable Resume pill at the top of StreamingHomeScreen on TV with the most recently watched in-progress title and remaining time.
Dragging vertical volume or brightness gestures past 0% or 100% felt flat with no tactile boundary feedback. Track rubber-banded overscroll in PlayerViewModel and GestureHandler, trigger a boundary haptic tick, and apply spring capsule stretch in VerticalSliders.
Cycling Fit/Crop/Stretch previously showed a plain text toast without visual feedback of the frame proportions. Add AspectRatioMorphUpdate in PlayerUpdates.kt with a spring-animated frame outline that morphs to match the active aspect ratio.
Hard-cutting audio on Play/Pause can cause an audible click on headphones. Add a 4-step 80ms volume micro-fade in PlayerViewModel.pause(), unpause(), and pauseUnpause() while keeping transient scrub pauses instant.
Dragging the seekbar had no way to abort a scrub and return cleanly to the original position. Track preScrubPosition and downward verticalDragPx in ModernSeekbarTrack; dragging >72dp below the bar snaps back to preScrubPosition with a haptic tick.
Long movies are hard to scrub to an exact second at 1x seekbar sensitivity. Slide upward while dragging ModernSeekbarTrack to shift into 0.5x and 0.25x fine-scrubbing gears with haptic detents and a Fine Scrubbing indicator.
Continue Watching and folder thumbnails always showed a fixed early frame regardless of where the user paused. Add ThumbnailRepository.updateResumeSnapshot() triggered on saveVideoPlaybackState to extract the paused sync frame, cache it on disk, and refresh matching memory cache keys.
After finishing a seekbar scrub or tap, player controls lingered for the full 2.5-4s timeout over the scene. Track lastManualSeekUptimeMs in PlayerViewModel and shorten the control auto-hide delay to 1.2s right after a seek completes.
Player edge scrims previously used the exit animation spec for both showing and hiding, causing controls to pop over bright scenes before the scrim settled. Use fastEffectsSpec on scrim enter and defaultEffectsSpec on exit in PlayerControls.kt.
Switching to the next episode queried ContentResolver and Room on the transition path. Pre-warm the next playlist item's filename, mediaIdentifier, and PlaybackStateEntity on Dispatchers.IO during the final 20 seconds of playback.
Skipping ahead to check an ending could accidentally mark an unwatched episode as watched with no quick way to revert. Emit RecentlyMarkedWatchedEvent in PlayerActivity when hasBeenWatched flips true and show a 4s WatchedUndoPill in SeriesDetailScreen to restore the previous watch state.
|
Sorry @Aryan447, your pull request is larger than the review limit of 150,000 diff characters |
Deploying mpvium with
|
| Latest commit: |
404f6fd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8311cb17.mpvium.pages.dev |
| Branch Preview URL: | https://feat-smart-player-ux.mpvium.pages.dev |
Fix missing imports, PlaylistItem.isPlaying field name, SubtitleProfileRepository package, Box/resetControlsTimestamp/versionPickerEpisodes scoping, and direct Int? property reads on viewModel.pos/duration.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lastWatchedAt+ 2s pill), Drag-Away Scrub Cancel (>72dp downward), Fine-Scrubbing Gear Shift (0.5x/0.25x upward), Smart Controls Auto-Fade (1.2s after seek), and Quiet Next Episode Pre-Warm.#C8C4BCsub-color + softened HUD), Night / Clear Dialogue DRC preset (lavfi=[dynaudnorm]), Gentle Play/Pause 80ms micro-fade, Gentle Sleep Timer 15s fade-out, Audio Disconnect Resume pill, and Subtitle Pinch Live Multiplier + Reset chip.systemGestures-safe), TV "Jump to Chapter" D-Pad Preview Strip, Elastic Overscroll on Volume/Brightness, Smooth Aspect Ratio Morph pill, Subtle Edge Scrim Breathing, Double-Tap-to-Reset on sliders, Spoiler-Free Show Mode (global + per-series), Multi-Version Episode Grouping, Instant Resume Frame Snapshots, Watched Threshold Undo pill, TV D-Pad & Long-Press Motion Preview, and TV "Now Playing" Resume Pill.Before / After
MIGRATION_10_11)How measured
Unmeasured on device; counts reflect the 30 commits on
feat/smart-player-ux(git log main..HEAD).Verification
git diff --checkclean on every commit.opencode/skills/commit-messages/scripts/check-commit-msg.shpassed on all commitsANDROID_HOMEunset in shell environment)Changelog
Updated
UNRELEASED.mdacross all user-facing commits.Risks
MpviumDatabasebumped from v10 to v11 withMIGRATION_10_11(ALTER TABLE PlaybackStateEntity ADD COLUMN lastWatchedAt INTEGER NOT NULL DEFAULT 0); Room schema export11.jsonshould be verified/committed if KSP generates it during CI.