Skip to content

Latest commit

 

History

History
128 lines (117 loc) · 17.1 KB

MediaPlayer.md

File metadata and controls

128 lines (117 loc) · 17.1 KB

MediaPlayer

Symbols: 83.5% of Apple's iOS API (449 of 538, exact) · Rows: 11: 7 ✅ 1 🟡 3 ❌ · iOS: 2.0+

Area: Media · Apple: MediaPlayer · Issues: area:media

How isim implements it

  • Adapted: a simulated music library ($ISIM_DATA/Media/Music).
  • Now Playing shows in isim's Control Center and on the lock screen; the remote script command sends remote commands.

API

API / feature Status iOS Notes
MediaPlayer MPNowPlayingInfoCenter ✅ ≤17 the info (title, artist, album, artwork, duration, elapsed time, rate) shows in Control Center's Now Playing module and on the lock screen of a booted device; tested (HelloAudio, HelloMusic: Control Center)
MediaPlayer MPRemoteCommandCenter ✅ ≤17 handlers and selector targets; commands come from the Now Playing controls (Control Center, lock screen) and the remote NAME [ARG] script command (tested: play, skip, seek, disabled command, Control Center next)
MPVolumeView ✅ ≤17 adapted: the device volume ($ISIM_DATA setting, isim's mixer master gain; script volume up|down|V; outputVolume KVO) and the route button (AirPlay card); tested (HelloAudio)
Music library (MPMediaLibrary, MPMediaQuery, MPMusicPlayerController, MPMediaPickerController), MusicKit 🟡 ≤17 adapted: isim's simulated library (six generated songs, a playlist, and audio files added to $ISIM_DATA/Media/Music); permission alert; queries, predicates, groupings, sections; system / application / queue players (Now Playing, remote commands), playlists the app creates; the picker sheet; MusicKit: library requests, ApplicationMusicPlayer / SystemMusicPlayer; catalog requests passthrough to the Apple Music API with your developer token (ISIM_MUSICKIT_DEVELOPER_TOKEN; tested against a local stand-in); no Apple Music subscription (catalog songs do not play); tested (HelloMusic, HelloMusic -musickit)
Remote command types: MPChangeRepeatModeCommand (currentRepeatType) / MPChangeRepeatModeCommandEvent, MPChangeShuffleModeCommand (currentShuffleType) / MPChangeShuffleModeCommandEvent, MPRepeatType, MPShuffleType, MPRatingCommand (ratingCommand, minimumRating, maximumRating) / MPRatingCommandEvent, enableLanguageOptionCommand / disableLanguageOptionCommand with MPChangeLanguageOptionCommandEvent ✅ ≤17 adapted: sent with the remote script command (repeat off|one|all, shuffle off|items|collections, rating N clamped to the command's range, language ID / nolanguage ID naming an option of the Now Playing info); Control Center has no buttons for them, as on iOS; tested (HelloAudio, test_audio)
MPNowPlayingInfoLanguageOption, MPNowPlayingInfoLanguageOptionGroup, MPNowPlayingInfoPropertyAvailableLanguageOptions / CurrentLanguageOptions, the MPLanguageOptionCharacteristic… constants ✅ ≤17 stored in the Now Playing info; the language commands find the option the app offered by identifier or display name; tested (HelloAudio)
MPNowPlayingInfoPropertyPlaybackProgress, chapter number / count, collection and external identifiers, ExcludeFromSuggestions ✅ ≤17 progress (0…1 of the duration) moves Control Center's progress bar when the info has no elapsed time; the others are stored; tested (HelloAudio)
MPNowPlayingSession (iOS 16: init(players:), nowPlayingInfoCenter, remoteCommandCenter, automaticallyPublishesNowPlayingInfo, becomeActiveIfPossible, isActive, canBecomeActive, addPlayer / removePlayer, delegate) ✅ ≤17 adapted: the active session's info is what Control Center shows and its command center gets the remote commands; automatic publishing follows the first player's item (duration, elapsed time, rate); tested (HelloAudio -session, test_audio_now_playing_session)
Types not yet in isim (iOS 17 and earlier) ❌ ≤17 not implemented, found by the 2026-10 sweep: MPContentItem, MPMediaPlayback, MPSystemMusicPlayerController (3 types; with their members under "Not yet in isim")
Types not yet in isim (iOS 26) ❌ 26.0 not implemented, found by the 2026-10 sweep: MPMediaItemAnimatedArtwork (1 type; with its members under "Not yet in isim")
Types not yet in isim (iOS 27) ❌ 27.0 not implemented, found by the 2026-10 sweep: MPAppEntityIdentifier (1 type; with its members under "Not yet in isim")

Not yet in isim

89 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.

List