Platforms to show: All Mac Windows Linux Cross-Platform
Back to MPNowPlayingInfoCenterMBS class.
MPNowPlayingInfoCenterMBS.MediaItemPropertyAlbumTitle as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The title of an album.
This value property contains the album title, such as “Live On Mars”, as opposed to the title of an individual song on the album, such as “Crater Dance (radio edit)” (which you specify using the MPMediaItemPropertyTitle property). Value is a string.
MPNowPlayingInfoCenterMBS.MediaItemPropertyAlbumTrackCount as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The number of tracks for the album that contains the media item.
This value is an UInteger. For an audio streaming app, the system provides a default value of 1 for this property.
MPNowPlayingInfoCenterMBS.MediaItemPropertyAlbumTrackNumber as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The track number of the media item, for a media item that is part of an album.
This value is an UInteger.
MPNowPlayingInfoCenterMBS.MediaItemPropertyArtist as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The performing artists for a media item — which may vary from the primary artist for the album that a media item belongs to.
For example, if the album artist is “Joseph Fable,” the artist for one of the songs in the album may be “Joseph Fable featuring Thomas Smithson”. Value is a string.
Some examples using this method:
MPNowPlayingInfoCenterMBS.MediaItemPropertyArtwork as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The artwork image for the media item.
This value is a media item image, described in MPMediaItemArtworkMBS.
Some examples using this method:
MPNowPlayingInfoCenterMBS.MediaItemPropertyComposer as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The musical composer for the media item.
This value is a string.
MPNowPlayingInfoCenterMBS.MediaItemPropertyDiscCount as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The number of discs for the album that contains the media item.
This value is an UInteger.
MPNowPlayingInfoCenterMBS.MediaItemPropertyDiscNumber as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The disc number of the media item, for a media item that is part of a multidisc album.
This value is an UInteger.
MPNowPlayingInfoCenterMBS.MediaItemPropertyGenre as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The music or film genre of the media item.
This value is a string.
Some examples using this method:
MPNowPlayingInfoCenterMBS.MediaItemPropertyMediaType as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The media type of the media item.
This value is an Integer. The integer value represents a bit field flag, or set of flags, from MPMediaType.
Some examples using this method:
MPNowPlayingInfoCenterMBS.MediaItemPropertyPersistentID as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The key for the persistent identifier for the media item.
The corresponding value is a number that contains a MPMediaEntityPersistentID. The value of the MPMediaItemPropertyPersistentID identifier persists across application launches and across syncs that do not change the sync status of the media item. The value is not guaranteed to persist across a sync/unsync/sync cycle.
MPNowPlayingInfoCenterMBS.MediaItemPropertyPlaybackDuration as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The duration. Value is a double.
Some examples using this method:
MPNowPlayingInfoCenterMBS.MediaItemPropertyTitle as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | MediaPlayer | MBS iOS Plugin | 25.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The title or name of the media item.
This property is unrelated to the MPMediaItemPropertyAlbumTitle property. Value is a string.
Some examples using this method:
The items on this page are in the following plugins: MBS iOS Plugin.