Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically resolve TV UI when using full UI #673

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

stonko1994
Copy link
Collaborator

@stonko1994 stonko1994 commented Jan 13, 2025

Description

Problem

Our TV UI does not automatically apply when running the Player/UI unmodified on a TV platform.

Changes

Automatically resolving to the TV UI variant when running on a TV platform.

  • Adding isTv to the UIConditionContext
  • Adding additional platform detections
  • Adding keymaps for those platforms

@@ -669,3 +681,8 @@ function tvUILayout() {
spatialNavigation: spatialNavigation,
};
}

function tvAdsUILayout() {
// TODO: implement once we have a design for TV ads
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It will be implemented once the Design is finalized.

@stonko1994 stonko1994 marked this pull request as ready for review January 13, 2025 13:06
@stonko1994 stonko1994 changed the title Automatically resolve TV UI when using full UI build Automatically resolve TV UI when using full UI Jan 13, 2025
Base automatically changed from feature/get-rid-of-modern-and-default to feature/modern-ui-base January 14, 2025 07:43
Copy link
Contributor

@felix-hoc felix-hoc left a comment

Choose a reason for hiding this comment

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

as discussed, we could wait for a player update to simplify the logic :)

Copy link
Contributor

@felix-hoc felix-hoc left a comment

Choose a reason for hiding this comment

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

makes sense, one suggestion otherwise LGTM

Comment on lines 51 to 52
return this.isHisense || this.isPlayStation || this.isWebOs
|| this.isTizen || this.isVizio || this.isXumo || this.isXbox;
Copy link
Contributor

Choose a reason for hiding this comment

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

we could also check for VIDAA OS:

/VIDAA/.test(navigator.userAgent);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@stonko1994 stonko1994 merged commit f1a05ec into feature/modern-ui-base Jan 14, 2025
3 checks passed
@stonko1994 stonko1994 deleted the feature/auto-resolve-tv-ui branch January 14, 2025 12:53
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