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
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