Change thumbnail logic

Created on 30 June 2023, 12 months ago

Hey there, let me quickly re-iterate the logic on how poster images are chosen in the player frontends so your logic can follow closely:

if (
 content.posterType === 'CUSTOM_POSTER' &&
 content.poster &&
 content.poster.length
) {
  // Take the custom poster
} else if (content.posterRenditions) {
 // Take the generated poster 
} else {
 // No poster available
} 

So having a custom poster really is the explicit case only when everything is in place including the correct posterType. Since posterRenditions are always generated it will then also fallback to the generated poster even if posterType = CUSTOM_POSTER is set but no content.poster is available

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany chr.fritsch πŸ‡©πŸ‡ͺπŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024