-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use resize endpoint for images #290
Use resize endpoint for images #290
Conversation
...-business/src/main/java/ch/srgssr/pillarbox/core/business/images/DefaultImageScaleService.kt
Outdated
Show resolved
Hide resolved
@@ -28,6 +28,7 @@ object MediaItemUrn { | |||
MediaMetadata.Builder() | |||
.setTitle(title) | |||
.setSubtitle(subtitle) | |||
// TODO Integrate `ImageScaleService` once we know if this class will be used or not |
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.
Is this a TODO for the future or has it been addressed (or not)?
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.
This class (MediaItemUrn
) was created in September, but is currently not used.
I'd like to check its status with @StaehliJ, to know if it makes sense to update it, or if we should delete it, or if the change is not necessary here.
@@ -28,6 +28,7 @@ object MediaItemUrn { | |||
MediaMetadata.Builder() | |||
.setTitle(title) | |||
.setSubtitle(subtitle) | |||
// TODO Integrate `ImageScaleService` once we know if this class will be used or not |
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.
Who can answer to this question?
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.
Hopefully @StaehliJ. I've given a bit more context here: #290 (comment)
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.
Maybe ImageScalingService
would be more correct than ImageScaleService
?
c22386b
to
f9b685f
Compare
Pull request
Description
Images displayed in the player's notification are now resized using the dedicated service. For now, we use a width of 480px, and WEBP.
Changes made
Checklist
main
branch.