-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Improve codec info #2893
Improve codec info #2893
Conversation
addBlockText(context, layout, "VISION"); | ||
addSpacer(context, layout, " "); | ||
} else if (stream.getVideoRangeType() != null && !stream.getVideoRangeType().equals("SDR")) { | ||
addBlockText(context, layout, stream.getVideoRangeType().toUpperCase()); |
Check warning
Code scanning / Android Lint
Implied default locale in case conversion
app/src/main/java/org/jellyfin/androidtv/util/InfoLayoutHelper.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/util/InfoLayoutHelper.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/util/InfoLayoutHelper.java
Outdated
Show resolved
Hide resolved
if (stream.getProfile() != null && stream.getProfile().contains("DTS-HD")) { | ||
codec = "DTS-HD"; | ||
} else if (stream.getCodec() != null && stream.getCodec().trim().length() > 0) { | ||
switch (stream.getCodec().toLowerCase()) { |
Check warning
Code scanning / Android Lint
Implied default locale in case conversion
case "dca": codec = "DTS"; break; | ||
case "eac3": codec = "DD+"; break; | ||
case "ac3": codec = "DD"; break; | ||
default: codec = stream.getCodec().toUpperCase(); |
Check warning
Code scanning / Android Lint
Implied default locale in case conversion
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.
Thanks for the pull request (and the explanations on my comments)!
@mohd-akram or @nielsvanvelzen |
If the video is not Dolby Vision it should display HDR |
That's what I was thinking, No HDR tag shows up for me but checking in Jellyfin web and it says the same media is HDR. In the debug options it can show the media file details such as bitrate, could more info be added there as well? |
Hmm maybe we need to detect HDR in a different way, can you create an issue for it? |
Changes
after audio codec infobefore format info