Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used: Recommendation Channel Version used: 'androidx.recommendation:recommendation:1.0.0' / 'androidx.tvprovider:tvprovider:1.0.0' Devices/Android versions reproduced on: Android 9
My app supports Recommendation Channels for the Home screen. I'm in a relatively unique position, because the app shows Live stream cards inside the Recommendation channel.
The problem is, these live streams has a static image link, which means the image's link doesn't changes, but the content of the image does.
exp:https://static-cdn.jtvnw.net/previews-ttv/live_user_failarmy-640x360.jpg
(i'm hoping this is really a 24/7 stream, so you don't get 404 when you check this post)
The content of the image gets updated every ~5 minutes. Inside the app i use Glide to download these images, and i use Glide's Cache Invalidate feature. (https://bumptech.github.io/glide/doc/caching.html#cache-invalidation ) Basically i use a handler that runs every 5 minutes, and updates a global string with the current DateTime, this is my "signature".
This way i can force Glide to re-download the the preview thumbnails every 5 minutes.
So back to my issue, with Recommendation channel these images get downloaded once, and never will be updated again. Which means the Channel cards show months old previews. With a movie poster this is not an issue, but with live streams is.
So i would like to request the following feature:
When i'm creating the Channels cards, with a new method i could force an image invalidation:
(i use PosterArtUri to set the thumbnail)
If this is not set, normal caching can occur, but when it's necessary we can force an update.
Thanks!