docs: document SetMinimized as single mutation point in AudioPlayerBar
This commit is contained in:
@@ -101,6 +101,16 @@ Used by the content API to serve seek-beyond-buffer requests. The player asks fo
|
||||
|
||||
PCM-only today. Other formats (mp3, flac, aac, ogg, m4a) are listed in `MimeTypeExtensions` but not implemented. The processor validates RIFF/WAVE/PCM format — anything else is rejected.
|
||||
|
||||
## Image processor
|
||||
|
||||
`ImageProcessor.ProcessImageAsync(buffer, mimeType)`:
|
||||
|
||||
1. Accepts raw image bytes and MIME type (e.g., `image/png`, `image/jpeg`).
|
||||
2. Parses PNG or JPEG headers to extract image dimensions.
|
||||
3. Computes aspect ratio (width / height). Defaults to 1.0 if parsing fails or format is unsupported.
|
||||
4. Returns `ImageBinary` with MIME type and aspect ratio metadata.
|
||||
5. **No disk I/O**: operates on `byte[]` only — no file reading required.
|
||||
|
||||
## Content-side TrackService (orchestrator)
|
||||
|
||||
### AddTrackFromWavAsync(filePath)
|
||||
@@ -124,7 +134,7 @@ Safety call to ensure the `tracks` vault exists (creates if missing). Called on
|
||||
|
||||
## Vault constants
|
||||
|
||||
`VaultConstants.Tracks = "tracks"` — the one vault name in production use. New vault names go here when adding new vault types (e.g., `VaultConstants.Images = "images"` if image uploads are added).
|
||||
`VaultConstants.Tracks = "tracks"` and `VaultConstants.Images = "images"` — the vault names in production use. New vault names go here when adding new vault types.
|
||||
|
||||
## Service registration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user