Documentation Archive Developer
Search

MediaPlayer Changes

MediaPlayer

Removed MPMediaEntity.objectForKeyedSubscript(AnyObject!) -> AnyObject!
Removed MPMediaPlaylistAttribute.value
Removed MPMediaType.value
Removed MPMovieLoadState.value
Removed MPMovieMediaTypeMask.value
Added MPMediaPlaylistAttribute.init(rawValue: UInt)
Added MPMediaType.init(rawValue: UInt)
Added MPMovieLoadState.init(rawValue: UInt)
Added MPMovieMediaTypeMask.init(rawValue: UInt)
Added UIViewController.dismissMoviePlayerViewControllerAnimated()
Added UIViewController.presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController!)
Modified MPChangePlaybackRateCommand
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPChangePlaybackRateCommandEvent
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPContentItem
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPContentItem.init(identifier: String!)
Declaration
From
init(identifier identifier: String!)
To
init!(identifier identifier: String!)

Modified MPFeedbackCommand
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPFeedbackCommandEvent
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPMediaEntity
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaEntity.enumerateValuesForProperties(NSSet!, usingBlock:((String!, AnyObject!, UnsafeMutablePointer<ObjCBool>) -> Void)!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMediaEntity.persistentID
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaGrouping [enum]
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaItem
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaItem.albumArtist
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.albumTitle
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.albumTrackNumber
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.artist
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.artwork
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.bookmarkTime
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.composer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.discNumber
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.genre
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.lastPlayedDate
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.mediaType
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.persistentID
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPMediaItem.persistentIDPropertyForGroupingType(MPMediaGrouping) -> String! [class]
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItem.playCount
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.playbackDuration
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.podcastTitle
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.rating
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.releaseDate
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.skipCount
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.title
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaItem.titlePropertyForGroupingType(MPMediaGrouping) -> String! [class]
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemArtwork
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaItemArtwork.init(image: UIImage!)
DeclarationIntroduction
From
init(image image: UIImage!)
iOS 8.0
To
init!(image image: UIImage!)
iOS 5.0

Modified MPMediaItemCollection
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaItemCollection.init(items: [AnyObject]!)
Declaration
From
init(items items: [AnyObject]!)
To
init!(items items: [AnyObject]!)

Modified MPMediaLibrary
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaPickerController
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaPickerController.init(mediaTypes: MPMediaType)
Declaration
From
init(mediaTypes mediaTypes: MPMediaType)
To
init!(mediaTypes mediaTypes: MPMediaType)

Modified MPMediaPickerController.showsCloudItems
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPMediaPlaylist
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaPlaylist.name
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaPlaylist.persistentID
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaPlaylist.playlistAttributes
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaPlaylistAttribute [struct]
DeclarationIntroduction
From
struct MPMediaPlaylistAttribute : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var None: MPMediaPlaylistAttribute { get }
    static var OnTheGo: MPMediaPlaylistAttribute { get }
    static var Smart: MPMediaPlaylistAttribute { get }
    static var Genius: MPMediaPlaylistAttribute { get }
}
iOS 8.0
To
struct MPMediaPlaylistAttribute : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: MPMediaPlaylistAttribute { get }
    static var OnTheGo: MPMediaPlaylistAttribute { get }
    static var Smart: MPMediaPlaylistAttribute { get }
    static var Genius: MPMediaPlaylistAttribute { get }
}
iOS 3.0

Modified MPMediaPlaylistAttribute.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MPMediaPredicate
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaPredicateComparison [enum]
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaPropertyPredicate
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaPropertyPredicate.init(value: AnyObject!, forProperty: String!)
Declaration
From
init(value value: AnyObject!, forProperty property: String!) -> MPMediaPropertyPredicate
To
init!(value value: AnyObject!, forProperty property: String!) -> MPMediaPropertyPredicate

Modified MPMediaPropertyPredicate.init(value: AnyObject!, forProperty: String!, comparisonType: MPMediaPredicateComparison)
Declaration
From
init(value value: AnyObject!, forProperty property: String!, comparisonType comparisonType: MPMediaPredicateComparison) -> MPMediaPropertyPredicate
To
init!(value value: AnyObject!, forProperty property: String!, comparisonType comparisonType: MPMediaPredicateComparison) -> MPMediaPropertyPredicate

Modified MPMediaQuery
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMediaQuery.collectionSections
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaQuery.init(filterPredicates: NSSet!)
Declaration
From
init(filterPredicates filterPredicates: NSSet!)
To
init!(filterPredicates filterPredicates: NSSet!)

Modified MPMediaQuery.itemSections
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaQuerySection
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaType [struct]
DeclarationIntroduction
From
struct MPMediaType : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var Music: MPMediaType { get }
    static var Podcast: MPMediaType { get }
    static var AudioBook: MPMediaType { get }
    static var AudioITunesU: MPMediaType { get }
    static var AnyAudio: MPMediaType { get }
    static var Movie: MPMediaType { get }
    static var TVShow: MPMediaType { get }
    static var VideoPodcast: MPMediaType { get }
    static var MusicVideo: MPMediaType { get }
    static var VideoITunesU: MPMediaType { get }
    static var HomeVideo: MPMediaType { get }
    static var AnyVideo: MPMediaType { get }
    static var Any: MPMediaType { get }
}
iOS 8.0
To
struct MPMediaType : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var Music: MPMediaType { get }
    static var Podcast: MPMediaType { get }
    static var AudioBook: MPMediaType { get }
    static var AudioITunesU: MPMediaType { get }
    static var AnyAudio: MPMediaType { get }
    static var Movie: MPMediaType { get }
    static var TVShow: MPMediaType { get }
    static var VideoPodcast: MPMediaType { get }
    static var MusicVideo: MPMediaType { get }
    static var VideoITunesU: MPMediaType { get }
    static var HomeVideo: MPMediaType { get }
    static var AnyVideo: MPMediaType { get }
    static var Any: MPMediaType { get }
}
iOS 3.0

Modified MPMediaType.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MPMovieAccessLog
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMovieAccessLogEvent
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMovieErrorLog
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMovieErrorLogEvent
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMovieLoadState [struct]
Declaration
From
struct MPMovieLoadState : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var Unknown: MPMovieLoadState { get }
    static var Playable: MPMovieLoadState { get }
    static var PlaythroughOK: MPMovieLoadState { get }
    static var Stalled: MPMovieLoadState { get }
}
To
struct MPMovieLoadState : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var Unknown: MPMovieLoadState { get }
    static var Playable: MPMovieLoadState { get }
    static var PlaythroughOK: MPMovieLoadState { get }
    static var Stalled: MPMovieLoadState { get }
}

Modified MPMovieLoadState.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MPMovieMediaTypeMask [struct]
Declaration
From
struct MPMovieMediaTypeMask : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var None: MPMovieMediaTypeMask { get }
    static var Video: MPMovieMediaTypeMask { get }
    static var Audio: MPMovieMediaTypeMask { get }
}
To
struct MPMovieMediaTypeMask : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: MPMovieMediaTypeMask { get }
    static var Video: MPMovieMediaTypeMask { get }
    static var Audio: MPMovieMediaTypeMask { get }
}

Modified MPMovieMediaTypeMask.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MPMoviePlayerController
Introduction
FromiOS 8.0
ToiOS 2.0

Modified MPMoviePlayerController.accessLog
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMoviePlayerController.airPlayVideoActive
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPMoviePlayerController.allowsAirPlay
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMoviePlayerController.cancelAllThumbnailImageRequests()
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerController.init(contentURL: NSURL!)
Declaration
From
init(contentURL url: NSURL!)
To
init!(contentURL url: NSURL!)

Modified MPMoviePlayerController.errorLog
Introduction
FromiOS 8.0
ToiOS 4.3

Modified MPMoviePlayerController.readyForDisplay
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPMoviePlayerController.requestThumbnailImagesAtTimes([AnyObject]!, timeOption: MPMovieTimeOption)
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerController.timedMetadata
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerViewController
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerViewController.init(contentURL: NSURL!)
Declaration
From
init(contentURL contentURL: NSURL!)
To
init!(contentURL contentURL: NSURL!)

Modified MPMusicPlayerController
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MPMusicPlayerController.iPodMusicPlayer() -> MPMusicPlayerController! [class]
IntroductionDeprecation
FromiOS 8.0--
ToiOS 3.0iOS 8.0

Modified MPMusicPlayerController.indexOfNowPlayingItem
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPNowPlayingInfoCenter
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPPlayableContentManager
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPRatingCommand
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPRatingCommandEvent
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPRemoteCommand
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPRemoteCommandCenter
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPRemoteCommandEvent
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPRemoteCommandHandlerStatus [enum]
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPSeekCommandEvent
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPSeekCommandEventType [enum]
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPSkipIntervalCommand
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPSkipIntervalCommandEvent
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MPTimedMetadata
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPVolumeView
Introduction
FromiOS 8.0
ToiOS 2.0

Modified MPVolumeView.maximumVolumeSliderImageForState(UIControlState) -> UIImage!
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.minimumVolumeSliderImageForState(UIControlState) -> UIImage!
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.routeButtonImageForState(UIControlState) -> UIImage!
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.routeButtonRectForBounds(CGRect) -> CGRect
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.setMaximumVolumeSliderImage(UIImage!, forState: UIControlState)
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.setMinimumVolumeSliderImage(UIImage!, forState: UIControlState)
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.setRouteButtonImage(UIImage!, forState: UIControlState)
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.setVolumeThumbImage(UIImage!, forState: UIControlState)
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.showsRouteButton
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPVolumeView.showsVolumeSlider
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPVolumeView.volumeSliderRectForBounds(CGRect) -> CGRect
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.volumeThumbImageForState(UIControlState) -> UIImage!
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.volumeThumbRectForBounds(CGRect, volumeSliderRect: CGRect, value: Float) -> CGRect
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPVolumeView.volumeWarningSliderImage
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPVolumeView.wirelessRouteActive
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPVolumeView.wirelessRoutesAvailable
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPMediaEntityPropertyPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyAlbumArtistPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyAlbumPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyArtistPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyAssetURL
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMediaItemPropertyBeatsPerMinute
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMediaItemPropertyBookmarkTime
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPMediaItemPropertyComments
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMediaItemPropertyComposerPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyGenrePersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyIsCloudItem
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPMediaItemPropertyPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyPodcastPersistentID
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MPMediaItemPropertyReleaseDate
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMediaItemPropertyUserGrouping
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMediaPlaybackIsPreparedToPlayDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMovieDurationAvailableNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMovieMediaTypesAvailableNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMovieNaturalSizeAvailableNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerDidEnterFullscreenNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerDidExitFullscreenNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerFullscreenAnimationCurveUserInfoKey
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerFullscreenAnimationDurationUserInfoKey
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPMoviePlayerLoadStateDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerNowPlayingMovieDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerPlaybackDidFinishReasonUserInfoKey
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerPlaybackStateDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerReadyForDisplayDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MPMoviePlayerThumbnailErrorKey
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerThumbnailImageKey
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerThumbnailImageRequestDidFinishNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerThumbnailTimeKey
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerTimedMetadataKeyDataType
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerTimedMetadataKeyInfo
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerTimedMetadataKeyLanguageCode
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerTimedMetadataKeyMIMEType
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerTimedMetadataKeyName
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerTimedMetadataUpdatedNotification
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerTimedMetadataUserInfoKey
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MPMoviePlayerWillEnterFullscreenNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMoviePlayerWillExitFullscreenNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPMovieSourceTypeAvailableNotification
Introduction
FromiOS 8.0
ToiOS 3.2

Modified MPNowPlayingInfoPropertyChapterCount
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPNowPlayingInfoPropertyChapterNumber
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPNowPlayingInfoPropertyElapsedPlaybackTime
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPNowPlayingInfoPropertyPlaybackQueueCount
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPNowPlayingInfoPropertyPlaybackQueueIndex
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPNowPlayingInfoPropertyPlaybackRate
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MPVolumeViewWirelessRouteActiveDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MPVolumeViewWirelessRoutesAvailableDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 7.0