The Media context handles media file operations: image storage (album art, user uploads), image format conversion, BlurHash generation for placeholder thumbnails, and media file streaming. It provides the storage abstraction that other contexts use when they need to persist or serve binary files.
Get the BlurHash placeholder string for progressive image loading
GET
/api/stream/track
Stream a track by public ID after checking library access; supports byte ranges. With format (opus, aac or mp3) and an optional bitrate in bits per second, streams a cached transcoded rendition while transcode.enabled is on (see Transcode)
Uses Uuid, PublicId, and CursorPaginatedResponse for entity identification and API responses, and SystemSettingsPortInterface for the transcoding settings
Depends on
Transcode
The track stream transcodes audio through AudioRenditionPortInterface (the Transcode Audio Rendition Contract Deptrac layer)