-
Notifications
You must be signed in to change notification settings - Fork 731
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
Fix animated images only autoplaying sometimes #6215
Fix animated images only autoplaying sometimes #6215
Conversation
Signed-off-by: networkException <[email protected]>
d74b925
to
9654c91
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.
LGTM, thanks for the PR!
2 non-blocking remarks.
...src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageImageVideoItem.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt
Outdated
Show resolved
Hide resolved
...src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageImageVideoItem.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: networkException <[email protected]>
9654c91
to
0c13ed8
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.
thanks for the update 💯
Signed-off-by: networkException <[email protected]>
0c13ed8
to
18eed00
Compare
Updated to resolve the conflict with b3fdb5e#diff-4c7d967a761a61ec885422f0b073f89bfc930e8ba67e825af801a1ed6a28c9d5L272 |
Is there anything blocking this from getting merged? |
Came here to ask this as well. Would love for this to be merged! |
This patch introduces a new `ImageContentRenderer` mode used for autoplaying animated images. The mode shares url resolving semantics with `FULL_SIZE` and `STICKER`, as such not just fetching thumbnail data but shares sizing semantics with `THUMBNAIL` (scaling by image height). This change fixes animated images not playing in cases in which only a static thumbnail would be loaded. This new mode will only be chosen if the message content is actually a playable image, as such limiting bandwith usage to the required amount by avoiding to load normal images fully (still fetching animated images will increase bandwith usage as a whole of course). Signed-off-by: networkException <[email protected]>
This patch removes the dependency on `VectorSettings` as well as only enable animated rendering if the image is actually playable. Signed-off-by: networkException <[email protected]>
Signed-off-by: networkException <[email protected]>
18eed00
to
2bca94d
Compare
@bmarty is there something missing for this to get merged? |
Just time. Thanks for the update! |
Type of change
Content
This pull request fixes autoplaying animated images only actually autoplaying in some cases as only thumbnail data would be fetched in the other cases.
It introduces a new
ImageContentRenderer
mode specifically for animated images with thumbnail sizing that always resolves to the actual image url just like stickers for exampleThe autoplaying feature was originally introduced in #6166
Motivation and context
This issue was brought up in the element-android matrix channel after release 1.4.18
Screenshots / GIFs
Tests
Tested devices
Checklist