Skip to content

feat: add configurable clock display#574

Open
mouadlotfi wants to merge 1 commit intoSamillion:mainfrom
mouadlotfi:feat/clock-display
Open

feat: add configurable clock display#574
mouadlotfi wants to merge 1 commit intoSamillion:mainfrom
mouadlotfi:feat/clock-display

Conversation

@mouadlotfi
Copy link
Copy Markdown

Summary

  • add a configurable clock display beside the playback speed control in the modern layout and centered in modern-compact
  • show the estimated end time by default, with click-to-toggle current time display
  • expose show_clock and clock_font_size in modernz.conf

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 23, 2026

The idea has been rejected before: #392.

This clock also breaks the cache info display. Maybe it's better to show it as an optional tooltip instead.

@Samillion
Copy link
Copy Markdown
Owner

Hmmm. Is this a desirable feature? I honestly haven't seen it anywhere. Genuinely asking, not rejecting.

For the most part I always found showing remaining time to be an equivalent of this, however, I'd love to know if there is a use case that would benefit from showing the exact time to end instead of a count down. I'm very curious.

@mouadlotfi
Copy link
Copy Markdown
Author

Hmmm. Is this a desirable feature? I honestly haven't seen it anywhere. Genuinely asking, not rejecting.

For the most part I always found showing remaining time to be an equivalent of this, however, I'd love to know if there is a use case that would benefit from showing the exact time to end instead of a count down. I'm very curious.

I've seen this in players like Jellyfin and I find it useful. It complements a countdown rather than replaces it.

@Samillion
Copy link
Copy Markdown
Owner

I don't mind it, but the PR needs to be rebased because of conflicts.

Issues:

  • Why is it tied to the speed button? You want it to show only if the speed button is showing as well?
  • Why was the speed button placement moved?
  • show_clock should be disabled by default
  • For clock text width, use a wide template, ie: 88:88. Having a bit more is better than less.
  • Consider @Keith94 's suggestion to show as a tooltip instead? To avoid layout breakage as described

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 23, 2026

From what I saw online, seems like Jellyfin puts the clock element above the seekbar rather than below it. Dunno what implications that might have on osc height and offsets, etc.

Having a tooltip for timecodes sounds reasonable as long as the contents update in real time, but the toggle behavior would need adjusting.

@Samillion
Copy link
Copy Markdown
Owner

Having a tooltip for timecodes sounds reasonable as long as the contents update in real time, but the toggle behavior would need adjusting.

It should be a tooltip for time stamps not seekbar, right? 0:00 / 0:00

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 23, 2026

Having a tooltip for timecodes sounds reasonable as long as the contents update in real time, but the toggle behavior would need adjusting.

It should be a tooltip for time stamps not seekbar, right? 0:00 / 0:00

Yup, that's what I meant to say. If tooltip was indeed considered as a solution, it could also depend on user_opts.timecurrent state to show different tooltips perhaps (such as current time display / estimated end time mentioned in OP).

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 24, 2026

So it could look like this as a tooltip to avoid cluttering up the interface.

image mpv_cJ1kl2lXGC

@mouadlotfi
Copy link
Copy Markdown
Author

What about this?

image

@Samillion
Copy link
Copy Markdown
Owner

Samillion commented Mar 28, 2026

Sure, but you'll have to consider the following:

  • In modern layout, if a video is portrait, the time stamps move to where you want the clock to show
  • In modern-compact layout, time stamps exist there permanently

@Samillion Samillion added the stalled: no response User did not respond with updates label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stalled: no response User did not respond with updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants