Expand description
§Bindings to the MediaPlayer
framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- MPAd
Time Range MPNowPlayingSession
- Apple’s documentation
- MPChange
Language Option Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPChange
Language Option Setting MPRemoteControlTypes
- Apple’s documentation
- MPChange
Playback Position Command MPRemoteCommand
- Command for changing the current playback position in a now playing item. Sends out MPChangePlaybackPositionCommandEvents.
- MPChange
Playback Position Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPChange
Playback Rate Command MPRemoteCommand
- Apple’s documentation
- MPChange
Playback Rate Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPChange
Repeat Mode Command MPRemoteCommand
- Command for changing the current repeat mode to use during playback. To update the system’s current representation of your app’s repeat mode, set the currentRepeatType property on this command to the proper repeat type value.
- MPChange
Repeat Mode Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPChange
Shuffle Mode Command MPRemoteCommand
- Command for changing the current shuffle mode to use during playback. To update the system’s current representation of your app’s shuffle mode, set the currentShuffleType property on this command to the proper shuffle type value.
- MPChange
Shuffle Mode Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPContent
Item MPContentItem
- MPContentItem represents high-level metadata for a particular media item for representation outside the client application. Examples of media items that a developer might want to represent include song files, streaming audio URLs, or radio stations.
- MPError
Code MPError
- Apple’s documentation
- MPFeedback
Command MPRemoteCommand
- Apple’s documentation
- MPFeedback
Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPMedia
Entity MPMediaEntity
- Apple’s documentation
- MPMedia
Grouping MPMediaQuery
- Apple’s documentation
- MPMedia
Item MPMediaEntity
andMPMediaItem
- Apple’s documentation
- MPMedia
Item Artwork MPMediaItem
- Apple’s documentation
- MPMedia
Item Collection MPMediaEntity
andMPMediaItemCollection
- Apple’s documentation
- MPMedia
Library MPMediaLibrary
- Apple’s documentation
- MPMedia
Library Authorization Status MPMediaLibrary
- Apple’s documentation
- MPMedia
Playlist MPMediaEntity
andMPMediaItemCollection
andMPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist Attribute MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist Creation Metadata MPMediaPlaylist
- Apple’s documentation
- MPMedia
Predicate MPMediaQuery
- Apple’s documentation
- MPMedia
Predicate Comparison MPMediaQuery
- Apple’s documentation
- MPMedia
Property Predicate MPMediaQuery
- Apple’s documentation
- MPMedia
Query MPMediaQuery
- Apple’s documentation
- MPMedia
Query Section MPMediaQuerySection
- Apple’s documentation
- MPMedia
Type MPMediaItem
- Apple’s documentation
- MPMusic
Playback State MPMusicPlayerController
- Apple’s documentation
- MPMusic
Player Application Controller MPMusicPlayerApplicationController
andMPMusicPlayerController
- Apple’s documentation
- MPMusic
Player Controller MPMusicPlayerController
- Apple’s documentation
- MPMusic
Player Controller Mutable Queue MPMusicPlayerApplicationController
- Apple’s documentation
- MPMusic
Player Controller Queue MPMusicPlayerApplicationController
- Apple’s documentation
- MPMusic
Player Media Item Queue Descriptor MPMusicPlayerQueueDescriptor
- Apple’s documentation
- MPMusic
Player Play Parameters MPMusicPlayerQueueDescriptor
- Apple’s documentation
- MPMusic
Player Play Parameters Queue Descriptor MPMusicPlayerQueueDescriptor
- Apple’s documentation
- MPMusic
Player Queue Descriptor MPMusicPlayerQueueDescriptor
- Apple’s documentation
- MPMusic
Player Store Queue Descriptor MPMusicPlayerQueueDescriptor
- Apple’s documentation
- MPMusic
Repeat Mode MPMusicPlayerController
- Apple’s documentation
- MPMusic
Shuffle Mode MPMusicPlayerController
- Apple’s documentation
- MPNow
Playing Info Center MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing Info Language Option MPNowPlayingInfoLanguageOption
- Represents a single language option option.
- MPNow
Playing Info Language Option Group MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPNow
Playing Info Language Option Type MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPNow
Playing Info Media Type MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing Playback State MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing Session MPNowPlayingSession
- Apple’s documentation
- MPPlayable
Content Manager Deprecated MPPlayableContentManager
- MPPlayableContentManager is a class that manages the interactions between a media application and an external media player interface. The application provides the content manager with a data source, which allows the media player to browse the media content offered by the application, as well as a delegate, which allows the media player to relay non-media remote playback commands to the application.
- MPPlayable
Content Manager Context Deprecated MPPlayableContentManagerContext
- MPPlayableContentManagerContext represents the current state of the playable content endpoint. A context is retrievable from an instance of MPPlayableContentManager.
- MPRating
Command MPRemoteCommand
- Apple’s documentation
- MPRating
Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPRemote
Command MPRemoteCommand
- Apple’s documentation
- MPRemote
Command Center MPRemoteCommandCenter
- Apple’s documentation
- MPRemote
Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPRemote
Command Handler Status MPRemoteCommand
- Apple’s documentation
- MPRepeat
Type MPRemoteControlTypes
- Apple’s documentation
- MPSeek
Command Event MPRemoteCommandEvent
- Apple’s documentation
- MPSeek
Command Event Type MPRemoteCommandEvent
- Apple’s documentation
- MPShuffle
Type MPRemoteControlTypes
- Apple’s documentation
- MPSkip
Interval Command MPRemoteCommand
- Apple’s documentation
- MPSkip
Interval Command Event MPRemoteCommandEvent
- Apple’s documentation
Statics§
- MPError
Domain ⚠MPError
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Contains Only Forced Subtitles MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Describes Music AndSound MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Describes Video MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Dubbed Translation MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Easy ToRead MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic IsAuxiliary Content MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic IsMain Program Content MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Language Translation MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Transcribes Spoken Dialog MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPLanguage
Option ⚠Characteristic Voice Over Translation MPNowPlayingInfoLanguageOption
- Apple’s documentation
- MPMedia
Entity ⚠Property PersistentID MPMediaEntity
- Apple’s documentation
- MPMedia
Item ⚠Property Album Artist MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Album Artist PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Album PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Album Title MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Album Track Count MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Album Track Number MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Artist MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Artist PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Artwork MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property AssetURL MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Beats PerMinute MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Bookmark Time MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Comments MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Composer MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Composer PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Date Added MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Disc Count MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Disc Number MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Genre MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Genre PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property HasProtected Asset MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property IsCloud Item MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property IsCompilation MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property IsExplicit MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property IsPreorder MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Last Played Date MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Lyrics MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Media Type MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Play Count MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Playback Duration MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Playback StoreID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Podcast PersistentID MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Podcast Title MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Rating MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Release Date MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Skip Count MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property Title MPMediaItem
- Apple’s documentation
- MPMedia
Item ⚠Property User Grouping MPMediaItem
- Apple’s documentation
- MPMedia
Library ⚠DidChange Notification MPMediaLibrary
- Apple’s documentation
- MPMedia
Playback ⚠IsPrepared ToPlay DidChange Notification MPMediaPlayback
- Apple’s documentation
- MPMedia
Playlist ⚠Property Author Display Name MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist ⚠Property Cloud GlobalID MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist ⚠Property Description Text MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist ⚠Property Name MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist ⚠Property PersistentID MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist ⚠Property Playlist Attributes MPMediaPlaylist
- Apple’s documentation
- MPMedia
Playlist ⚠Property Seed Items MPMediaPlaylist
- Apple’s documentation
- MPMusic
Player ⚠Controller NowPlaying Item DidChange Notification MPMusicPlayerController
- Apple’s documentation
- MPMusic
Player ⚠Controller Playback State DidChange Notification MPMusicPlayerController
- Apple’s documentation
- MPMusic
Player ⚠Controller Queue DidChange Notification MPMusicPlayerApplicationController
- Apple’s documentation
- MPMusic
Player ⚠Controller Volume DidChange Notification MPMusicPlayerController
- Apple’s documentation
- MPNow
Playing ⚠Info Collection Identifier MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property AdTime Ranges MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property AssetURL MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Available Language Options MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Chapter Count MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Chapter Number MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Credits Start Time MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Current Language Options MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Current Playback Date MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Default Playback Rate MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Elapsed Playback Time MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Exclude From Suggestions MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property External Content Identifier MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property External User Profile Identifier MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property International Standard Recording Code MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property IsLive Stream MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Media Type MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Playback Progress MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Playback Queue Count MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Playback Queue Index MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Playback Rate MPNowPlayingInfoCenter
- Apple’s documentation
- MPNow
Playing ⚠Info Property Service Identifier MPNowPlayingInfoCenter
- Apple’s documentation
Traits§
- AVMedia
Selection GroupMP NowPlaying Info Language Option Additions AVFoundation_MPNowPlayingInfoLanguageOptionAdditions
- Category “MPNowPlayingInfoLanguageOptionAdditions” on
AVMediaSelectionGroup
. - AVMedia
Selection OptionMP NowPlaying Info Language Option Additions AVFoundation_MPNowPlayingInfoLanguageOptionAdditions
- Category “MPNowPlayingInfoLanguageOptionAdditions” on
AVMediaSelectionOption
. Category for creating language options from AV types - AVPlayer
ItemMP Additions AVPlayerItem_MediaPlayerAdditions
- Category “MPAdditions” on
AVPlayerItem
. - MPMedia
Playback MPMediaPlayback
- Apple’s documentation
- MPNow
Playing Session Delegate MPNowPlayingSession
- Apple’s documentation
- MPPlayable
Content Data Source Deprecated MPPlayableContentDataSource
- MPPlayableContentDataSource is a protocol that application objects conform to if they want to support external media players, such as vehicle head units. Data sources are responsible for providing metadata about your media to these systems in a meaningful way, so that features like user interfaces and play queues can be setup automatically.
- MPPlayable
Content Delegate Deprecated MPPlayableContentDelegate
- The MPPlayableContentDelegate is a protocol that allows for external media players to send playback commands to an application. For instance, the user could browse the application’s media content (provided by the MPPlayableContentDataSource) and selects a content item to play. If the media player decides that it wants to play the item, it will ask the application’s content delegate to initiate playback.
- MPSystem
Music Player Controller MPMusicPlayerController
- Apple’s documentation
- NSUser
Activity Media Player Additions NSUserActivity_MediaPlayerAdditions
- Category “MediaPlayerAdditions” on
NSUserActivity
.
Functions§
- MPVolume
Settings ⚠Alert Hide Deprecated MPVolumeSettings
- MPVolume
Settings ⚠Alert IsVisible Deprecated MPVolumeSettings
- MPVolume
Settings ⚠Alert Show Deprecated MPVolumeSettings
Type Aliases§
- MPMedia
Entity PersistentID MPMediaEntity
- Apple’s documentation