-
Notifications
You must be signed in to change notification settings - Fork 88
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
Automatically resolve TV UI when using full UI #673
Conversation
src/ts/uifactory.ts
Outdated
@@ -669,3 +681,8 @@ function tvUILayout() { | |||
spatialNavigation: spatialNavigation, | |||
}; | |||
} | |||
|
|||
function tvAdsUILayout() { | |||
// TODO: implement once we have a design for TV ads |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 :)
There was a problem hiding this 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
src/ts/browserutils.ts
Outdated
return this.isHisense || this.isPlayStation || this.isWebOs | ||
|| this.isTizen || this.isVizio || this.isXumo || this.isXbox; |
There was a problem hiding this comment.
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);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
isTv
to theUIConditionContext