Repository navigation
Releases
Releases · kokluch/yoto-swift
yoto-swift 0.1.0
First public version.
Added
YotoAPI: OAuth 2 with PKCE and a token store (single-use refresh tokens rotated atomically,
keychain or in-memory persistence).Card,ChapterandTrack: typedCodablemodels that keep every field they don't model (and
known fields with unexpected values) and write them back unchanged.==ignores local-only
values;Card.empty.- MYO playlists: list, load (with media URLs), create, update, copy, delete; streams and
multi-track chapters. - Card editing: combine chapters into one multi-track chapter and separate them again, copy
chapters from another playlist without uploading, move, rename, remove, remove duplicates. - Playback options: play from start, shuffle, hidden track numbers, end of track, online-only
playback; track end commands (events.onEnd: stop, repeat). - Card details: category, ages, languages, author, narrator, description, genres
(metadata.genres), copyright. - Audio upload with Yoto's transcoding (progress phases, optional server-side loudness
normalization, SHA-256 deduplication); cover upload. - Icons: Yoto's public library and the user's own,
IconCatalogsearch, number and title-matched
icons;uploadIconsends the raw image (with afilename), with a multipart form as fallback when
Yoto answers 400 or 415. Chapter.hasIcon(false for no icon or Yoto's "MYO Default Icon",
DisplayIcon.myoDefaultMediaID) andCardHealth.missingIcons.Chapter.IconSnapshotandCard.restoreIcon(_:ofChapter:)put a chapter's icons back exactly.- Family library and groups; players and their settings.
PlayerandFamilyCardareDecodable
and have public initializers, to rebuild them from a local cache. CardArchive: local version history of playlists.YotoRealtime: player control and live state over MQTT.yotoCLI: login, logout, playlists, show, create, add, rename, delete, backup, players, status,
play, pause, resume, stop, volume.