Skip to content

Feat: Add optional clock to TV player#2941

Open
JelleSThijs wants to merge 12 commits into
recloudstream:masterfrom
JelleSThijs:master
Open

Feat: Add optional clock to TV player#2941
JelleSThijs wants to merge 12 commits into
recloudstream:masterfrom
JelleSThijs:master

Conversation

@JelleSThijs

Copy link
Copy Markdown
  • Add a new TV layout clock setting to the player option menu.
  • Add a new Text clock to the tv player layout. Take 12AM/PM and 24 hour clocks into account.

@fire-light42 fire-light42 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very elegant solution with TextClock! Good code and clean implementation.

There are only some minor nitpicks which are difficult (if not impossible) for a first-time contributor to know about.

Comment thread app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt Outdated
Comment thread app/src/main/res/xml/settings_player.xml
Comment thread app/src/main/res/values/strings.xml Outdated
Comment thread app/src/main/res/values/strings.xml Outdated
Comment thread app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt Outdated
- Transfer tv_layout_clock_key from strings.xml to donottranslate-strings.xml.
- Rename the string value to adhere to the already existing keys.
- Use playerBinding?.playerVideoClock instead of using getViewById.
- Use isVisible instead of an if statement for the visibility logic
@JelleSThijs JelleSThijs requested a review from fire-light42 June 22, 2026 15:10

@fire-light42 fire-light42 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good!
@KingLucius what do you think?

@KingLucius

Copy link
Copy Markdown
Contributor

Everything looks good!
@KingLucius what do you think?

Code is very clean and elegant as you said 👍 but I have a concern on UI TextClock position, I was thinking about put it in the middle, I didn't try it though
So, if the position is good for you, let's merge it

Also, clock is needed on Home page also, was thinking on adding it to top of navbar (that's what I was working on) to avoid crowded right area above the provider selector buttons.

@JelleSThijs

Copy link
Copy Markdown
Author

I will add the clock to the homepage, but i don't know how you would want to place the clock in the top center in the player, since that might overlap with the download header.

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.

3 participants