-
-
Notifications
You must be signed in to change notification settings - Fork 515
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
Add resolution codec check #3953
Add resolution codec check #3953
Conversation
app/src/main/java/org/jellyfin/androidtv/util/profile/MediaCodecCapabilitiesTest.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/profile/MediaCodecCapabilitiesTest.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/profile/MediaCodecCapabilitiesTest.kt
Fixed
Show fixed
Hide fixed
86b0190
to
567c992
Compare
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 would be even better to use the highest supported width/height values directly in the profile instead.
9d1ff79
to
d7336d5
Compare
d7336d5
to
73694ec
Compare
app/src/main/java/org/jellyfin/androidtv/util/profile/MediaCodecCapabilitiesTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/util/profile/MediaCodecCapabilitiesTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/util/profile/MediaCodecCapabilitiesTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/util/profile/ProfileHelper.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/util/profile/ProfileHelper.kt
Outdated
Show resolved
Hide resolved
var maxWidth = 0 | ||
var maxHeight = 0 | ||
|
||
for (info in mediaCodecList.codecInfos) { |
Check warning
Code scanning / detekt
The loop contains more than one break or continue statement. The code should be refactored to increase readability. Warning
d6b7f3f
to
1a36699
Compare
This PR introduces a new check to verify resolution support, ensuring compatibility with 1080p devices. The update involves changes to
MediaCodecCapabilitiesTest
,ProfileHelper
,ExoPlayerProfile
, andPlaybackController
, allowing playback options to be configured according to the codec's resolution capabilities of the device.Changes
getMaxResolution
method to return the maximum supported width and height.maxResolutionCodecProfile
MediaTest.getMaxResolution
max1080pProfileConditions
ExoPlayerProfile
to reflect changes in the handling of 1080p profiles and removes thedisable4KVideo
parameter.!DeviceUtils.has4kVideoSupport
condition.