Methods
(static) .getBackdropUrl(datum, deviceResolution) → {string}
Centralized function to determine the appropriate backdrop URL for any Jellyfin item type. Handles all media types: Movie, Series, Episode, MusicAlbum, Video, CollectionFolder, etc. Uses device resolution for proper image sizing. /
Parameters:
| Name | Type | Description |
|---|---|---|
datum | object | The Jellyfin item data (BaseItemDto) from API |
deviceResolution | array | Device UI resolution as [width, height] array |
Returns:
Backdrop URL or empty string if no backdrop available
- Type:
- string