-
Notifications
You must be signed in to change notification settings - Fork 516
MediaPlayer tvOS 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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h 2022-10-06 13:21:51
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h 2023-02-11 22:22:55
@@ -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h 2022-10-06 13:21:50
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h 2023-02-11 22:22:55
@@ -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h 2022-10-06 13:21:51
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h 2023-02-11 22:22:55
@@ -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
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status