Documentation Archive Developer
Search

MediaPlayer Changes for Objective-C

MediaPlayer

AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h (Added)

Added AVMediaSelectionGroup(MPNowPlayingInfoLanguageOptionAdditions)
Added AVMediaSelectionOption(MPNowPlayingInfoLanguageOptionAdditions)

MPMediaEntity.h

Declaration
From
- (void)enumerateValuesForProperties:(NSSet *)properties usingBlock:(void (^)(NSString *property, id value, BOOL *stop))block
To
- (void)enumerateValuesForProperties:(NSSet<NSString *> * _Nonnull)properties usingBlock:(void (^ _Nonnull)(NSString * _Nonnull property, id _Nonnull value, BOOL * _Nonnull stop))block

MPMediaItemCollection.h

Declaration
From
+ (MPMediaItemCollection *)collectionWithItems:(NSArray *)items
To
+ (MPMediaItemCollection * _Nonnull)collectionWithItems:(NSArray<MPMediaItem *> * _Nonnull)items

Declaration
From
- (instancetype)initWithItems:(NSArray *)items
To
- (instancetype _Nonnull)initWithItems:(NSArray<MPMediaItem *> * _Nonnull)items

Declaration
From
@property(nonatomic, readonly) NSArray *items
To
@property(nonatomic, readonly, nonnull) NSArray<MPMediaItem *> *items

MPMediaPlayback.h

Deprecation
From--
ToiOS 9.0

MPMediaPlaylist.h

Declaration
From
@property(nonatomic, readonly) NSArray *seedItems
To
@property(nonatomic, readonly, nullable) NSArray<MPMediaItem *> *seedItems

MPMediaQuery.h

Declaration
From
@property(nonatomic, readonly) NSArray *collections
To
@property(nonatomic, readonly, nullable) NSArray<MPMediaItemCollection *> *collections

Declaration
From
@property(nonatomic, readonly) NSArray *collectionSections
To
@property(nonatomic, readonly, nullable) NSArray<MPMediaQuerySection *> *collectionSections

Declaration
From
@property(nonatomic, strong) NSSet *filterPredicates
To
@property(nonatomic, strong, nullable) NSSet<MPMediaPredicate *> *filterPredicates

Declaration
From
- (instancetype)initWithFilterPredicates:(NSSet *)filterPredicates
To
- (instancetype _Nonnull)initWithFilterPredicates:(NSSet<MPMediaPredicate *> * _Nullable)filterPredicates

Declaration
From
@property(nonatomic, readonly) NSArray *items
To
@property(nonatomic, readonly, nullable) NSArray<MPMediaItem *> *items

Declaration
From
@property(nonatomic, readonly) NSArray *itemSections
To
@property(nonatomic, readonly, nullable) NSArray<MPMediaQuerySection *> *itemSections

MPMoviePlayerController.h

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 3.2--
ToiOS 2.0iOS 9.0

IntroductionDeprecation
FromiOS 3.2--
ToiOS 2.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 3.0--
ToiOS 2.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 3.2--
ToiOS 2.0iOS 9.0

IntroductionDeprecation
FromiOS 3.2--
ToiOS 2.0iOS 9.0

IntroductionDeprecation
FromiOS 3.2--
ToiOS 2.0iOS 9.0

IntroductionDeprecation
FromiOS 3.2--
ToiOS 2.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

MPMoviePlayerViewController.h

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

MPNowPlayingInfoCenter.h

Declaration
From
@property(copy) NSDictionary *nowPlayingInfo
To
@property(copy, nullable) NSDictionary<NSString *,id> *nowPlayingInfo

MPNowPlayingInfoLanguageOption.h (Added)

MPPlayableContentDelegate.h

MPPlayableContentManager.h

MPPlayableContentManagerContext.h (Added)

MPRemoteCommand.h

Declaration
From
@property(nonatomic, copy) NSArray *supportedPlaybackRates
To
@property(nonatomic, copy, nonnull) NSArray<NSNumber *> *supportedPlaybackRates

MPRemoteCommandCenter.h

MPRemoteCommandEvent.h