Skip to content

MediaPlayer watchOS xcode14.3 beta1

Alex Soto edited this page Feb 16, 2023 · 2 revisions

#MediaPlayer.framework

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h	2022-10-06 13:23:00
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h	2023-02-12 00:14:38
@@ -10,12 +10,16 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
+MP_UNAVAILABLE_BEGIN(watchos, macos, macCatalyst)
+
 @interface AVPlayerItem (MPAdditions)
 
 /// The current now playing info for the player item.
 /// Setting the info to nil will clear it.
-@property (nonatomic, copy, nullable) NSDictionary<NSString *, id> *nowPlayingInfo MP_API(ios(16.0), tvos(16.0), macos(13.0), watchos(9.0));
+@property (nonatomic, copy, nullable) NSDictionary<NSString *, id> *nowPlayingInfo MP_API(ios(16.0), tvos(16.0));
 
 @end
+
+MP_UNAVAILABLE_END
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h	2022-10-06 13:23:00
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h	2023-02-12 00:14:37
@@ -18,7 +18,7 @@
     MPMediaPlaylistAttributeNone    = 0,
     MPMediaPlaylistAttributeOnTheGo = (1 << 0), // if set, the playlist was created on a device rather than synced from iTunes
     MPMediaPlaylistAttributeSmart   = (1 << 1),
-    MPMediaPlaylistAttributeGenius  = (1 << 2)
+    MPMediaPlaylistAttributeGenius  = (1 << 2),
 } MP_API(ios(3.0)) API_UNAVAILABLE(tvos, watchos, macos);
 
 // An MPMediaPlaylist is a collection of related MPMediaItems in an MPMediaLibrary.
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h	2022-10-06 13:23:01
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h	2023-02-12 00:14:38
@@ -2,7 +2,7 @@
 //  MediaPlayerDefines.h
 //  MediaPlayer
 //
-//  Copyright © 2022 Apple Inc. All rights reserved.
+//  Copyright © 2023 Apple Inc. All rights reserved.
 //
 
 #ifndef MP_DEFINES
@@ -46,6 +46,17 @@
 #define MP_COMPLETION                               __attribute__((called_once))
 #define MP_OVERLOAD                                 __attribute__((overloadable))
 #define MP_FINAL_CLASS                              __attribute__((objc_subclassing_restricted))
+
+#if __has_attribute(swift_attr)
+#define MP_SWIFT_MAIN_ACTOR                         __attribute__((swift_attr("@MainActor")))
+#else
+#define MP_SWIFT_MAIN_ACTOR
+#endif
+#if __has_attribute(swift_error)
+#define MP_SWIFT_ERROR_NULLABLE_RESULT              __attribute__((swift_error(nonnull_error)))
+#else
+#define MP_SWIFT_ERROR_NULLABLE_RESULT
+#endif
 
 #pragma mark - Utility
 
Clone this wiki locally